|
rad
4.0.0
|
#include <request.hpp>
Public Member Functions | |
| Request () | |
Default copy constructor. | |
| Request (const Request &)=default | |
| Request (Request &&) noexcept=default | |
Default assignment operators. | |
| Request & | operator= (const Request &)=default |
| Request & | operator= (Request &&) noexcept=default |
| elt::mal::future< REP_TYPE > | GetReplyFuture () const |
| void | SetReplyValue (const REP_TYPE &reply) const |
| template<class T > | |
| void | SetException (const T &e) const |
This class allows to send a MAL reply to a request WITHOUT payload.
| REP_TYPE | Type of the reply's payload. |
|
inline |
Default constructor that creates a promise associated to the MAL reply.
|
default |
|
defaultnoexcept |
|
inline |
This method can be used to get the 'future' indicating when a reply is ready to be sent.
|
default |
|
defaultnoexcept |
|
inline |
This method allows to set the payload for an ERROR reply.
| T | Type of exception which should derive from elt::mal::MalException. |
| e | Exception containing error description. |
|
inline |
This method allows to set the payload for the OK reply.
| reply | Payload of the reply. |