![]() |
Dripline-Cpp
v2.4.2
Dripline Implementation in C++
|
Object that can be thrown while processing a request to send a reply. More...
#include <throw_reply.hh>
Public Member Functions | |
throw_reply () | |
throw_reply (const return_code &a_code, scarab::param_ptr_t a_payload_ptr=scarab::param_ptr_t(new scarab::param())) | |
throw_reply (const throw_reply &a_orig) | |
virtual | ~throw_reply () noexcept |
throw_reply & | operator= (const throw_reply &a_orig) |
template<class x_streamable > | |
throw_reply & | operator<< (x_streamable a_fragment) |
throw_reply & | operator<< (const std::string &a_fragment) |
throw_reply & | operator<< (const char *a_fragment) |
const std::string & | return_message () const noexcept |
std::string & | return_message () |
const return_code & | ret_code () const noexcept |
void | set_return_code (const return_code &a_code) |
const scarab::param & | payload () const noexcept |
scarab::param & | payload () |
void | set_payload (scarab::param_ptr_t a_payload) |
const scarab::param_ptr_t & | get_payload_ptr () const noexcept |
Protected Attributes | |
std::string | f_return_message |
std::shared_ptr< return_code > | f_return_code |
scarab::param_ptr_t | f_payload |
Object that can be thrown while processing a request to send a reply.
The throw_reply is intended to be thrown during message processing. It's caught in endpoint::on_request_message() to translate the information into a reply message.
Three pieces of information can be transmitted:
Definition at line 41 of file throw_reply.hh.
throw_reply | ( | ) |
Definition at line 18 of file throw_reply.cc.
throw_reply | ( | const return_code & | a_code, |
scarab::param_ptr_t | a_payload_ptr = scarab::param_ptr_t(new scarab::param()) |
||
) |
Definition at line 24 of file throw_reply.cc.
throw_reply | ( | const throw_reply & | a_orig | ) |
Definition at line 30 of file throw_reply.cc.
|
virtualnoexcept |
Definition at line 36 of file throw_reply.cc.
|
inlinenoexcept |
Definition at line 136 of file throw_reply.hh.
throw_reply & operator<< | ( | x_streamable | a_fragment | ) |
Definition at line 79 of file throw_reply.hh.
|
inline |
Definition at line 87 of file throw_reply.hh.
|
inline |
Definition at line 93 of file throw_reply.hh.
throw_reply & operator= | ( | const throw_reply & | a_orig | ) |
Definition at line 39 of file throw_reply.cc.
|
inlinenoexcept |
Definition at line 120 of file throw_reply.hh.
|
inline |
Definition at line 125 of file throw_reply.hh.
|
inlinenoexcept |
Definition at line 109 of file throw_reply.hh.
|
inlinenoexcept |
Definition at line 99 of file throw_reply.hh.
|
inline |
Definition at line 104 of file throw_reply.hh.
|
inline |
Definition at line 130 of file throw_reply.hh.
|
inline |
Definition at line 114 of file throw_reply.hh.
|
protected |
Definition at line 74 of file throw_reply.hh.
|
protected |
Definition at line 73 of file throw_reply.hh.
|
protected |
Definition at line 72 of file throw_reply.hh.