rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
rad::cii::Request< REP_TYPE, void > Class Template Reference

#include <request.hpp>

Public Member Functions

 Request ()
 
 Request (const Request &r)=default
 
Requestoperator= (const Request &r)=default
 
elt::mal::future< REP_TYPE > GetReplyFuture () const
 
void SetReplyValue (const REP_TYPE &reply) const
 
template<class T >
void SetException (const T &e) const
 
 Request ()
 
 Request (const Request &r)=default
 
Requestoperator= (const Request &r)=default
 
elt::mal::future< REP_TYPE > GetReplyFuture () const
 
void SetReplyValue (const REP_TYPE &reply) const
 
template<class T >
void SetException (const T &e) const
 
 Request ()
 
 Request (const Request &r)=default
 
Requestoperator= (const Request &r)=default
 
elt::mal::future< REP_TYPE > GetReplyFuture () const
 
void SetReplyValue (const REP_TYPE &reply) const
 
template<class T >
void SetException (const T &e) const
 

Detailed Description

template<class REP_TYPE>
class rad::cii::Request< REP_TYPE, void >

This class allows to send a MAL reply to a request WITHOUT payload.

Template Parameters
REP_TYPEType of the reply's payload.

Constructor & Destructor Documentation

template<class REP_TYPE >
rad::cii::Request< REP_TYPE, void >::Request ( )
inline

Default constructor that creates a promise associated to the MAL reply.

template<class REP_TYPE >
rad::cii::Request< REP_TYPE, void >::Request ( const Request< REP_TYPE, void > &  r)
default

Default copy constructor.

template<class REP_TYPE >
rad::cii::Request< REP_TYPE, void >::Request ( )
inline

Default constructor that creates a promise associated to the MAL reply.

template<class REP_TYPE >
rad::cii::Request< REP_TYPE, void >::Request ( const Request< REP_TYPE, void > &  r)
default

Default copy constructor.

template<class REP_TYPE >
rad::cii::Request< REP_TYPE, void >::Request ( )
inline

Default constructor that creates a promise associated to the MAL reply.

template<class REP_TYPE >
rad::cii::Request< REP_TYPE, void >::Request ( const Request< REP_TYPE, void > &  r)
default

Default copy constructor.

Member Function Documentation

template<class REP_TYPE >
elt::mal::future<REP_TYPE> rad::cii::Request< REP_TYPE, void >::GetReplyFuture ( ) const
inline

This method can be used to get the 'future' indicating when a reply is ready to be sent.

Returns
A future associated to the reply.
template<class REP_TYPE >
elt::mal::future<REP_TYPE> rad::cii::Request< REP_TYPE, void >::GetReplyFuture ( ) const
inline

This method can be used to get the 'future' indicating when a reply is ready to be sent.

Returns
A future associated to the reply.
template<class REP_TYPE >
elt::mal::future<REP_TYPE> rad::cii::Request< REP_TYPE, void >::GetReplyFuture ( ) const
inline

This method can be used to get the 'future' indicating when a reply is ready to be sent.

Returns
A future associated to the reply.
template<class REP_TYPE >
Request& rad::cii::Request< REP_TYPE, void >::operator= ( const Request< REP_TYPE, void > &  r)
default

Default assignment operator.

template<class REP_TYPE >
Request& rad::cii::Request< REP_TYPE, void >::operator= ( const Request< REP_TYPE, void > &  r)
default

Default assignment operator.

template<class REP_TYPE >
Request& rad::cii::Request< REP_TYPE, void >::operator= ( const Request< REP_TYPE, void > &  r)
default

Default assignment operator.

template<class REP_TYPE >
template<class T >
void rad::cii::Request< REP_TYPE, void >::SetException ( const T &  e) const
inline

This method allows to set the payload for an ERROR reply.

Template Parameters
TType of exception.
Parameters
eException containing error description.
template<class REP_TYPE >
template<class T >
void rad::cii::Request< REP_TYPE, void >::SetException ( const T &  e) const
inline

This method allows to set the payload for an ERROR reply.

Template Parameters
TType of exception.
Parameters
eException containing error description.
template<class REP_TYPE >
template<class T >
void rad::cii::Request< REP_TYPE, void >::SetException ( const T &  e) const
inline

This method allows to set the payload for an ERROR reply.

Template Parameters
TType of exception.
Parameters
eException containing error description.
template<class REP_TYPE >
void rad::cii::Request< REP_TYPE, void >::SetReplyValue ( const REP_TYPE &  reply) const
inline

This method allows to set the payload for the OK reply.

Parameters
replyPayload of the reply.
template<class REP_TYPE >
void rad::cii::Request< REP_TYPE, void >::SetReplyValue ( const REP_TYPE &  reply) const
inline

This method allows to set the payload for the OK reply.

Parameters
replyPayload of the reply.
template<class REP_TYPE >
void rad::cii::Request< REP_TYPE, void >::SetReplyValue ( const REP_TYPE &  reply) const
inline

This method allows to set the payload for the OK reply.

Parameters
replyPayload of the reply.

The documentation for this class was generated from the following files: