contains the result (return value as libt2n::result or an libt2n::t2n_exception) of a executed command More...
#include <container.hxx>
Public Member Functions | |
| result_container () | |
| result_container (result *_res) | |
| result_container (t2n_exception *_ex) | |
| ~result_container () | |
| deletes the carried result or exception objects | |
| void | set_result (result *_res) |
| void | set_exception (t2n_exception *_ex) |
| result * | get_result (void) |
| returns the result or throw the carried exception. ATTENTION: the result object is deleted in the destructor | |
| bool | has_exception () |
| bool | has_result () |
Private Types | |
| enum | result_type_t { regular, exception } |
Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| result * | res |
| t2n_exception * | ex |
| enum libt2n::result_container::result_type_t | result_type |
Friends | |
| class | boost::serialization::access |
contains the result (return value as libt2n::result or an libt2n::t2n_exception) of a executed command
enum libt2n::result_container::result_type_t [private] |
| libt2n::result_container::result_container | ( | ) | [inline] |
| libt2n::result_container::result_container | ( | result * | _res | ) | [inline] |
| libt2n::result_container::result_container | ( | t2n_exception * | _ex | ) | [inline] |
| libt2n::result_container::~result_container | ( | ) |
| result * libt2n::result_container::get_result | ( | void | ) |
returns the result or throw the carried exception. ATTENTION: the result object is deleted in the destructor
References libt2n::t2n_exception::do_throw(), ex, exception, res, and result_type.
| bool libt2n::result_container::has_exception | ( | ) | [inline] |
References ex, exception, and result_type.
Referenced by libt2n::command_server::handle_packet().
| bool libt2n::result_container::has_result | ( | ) | [inline] |
References regular, res, and result_type.
| void libt2n::result_container::serialize | ( | Archive & | ar, | |
| const unsigned int | version | |||
| ) | [inline, private] |
| void libt2n::result_container::set_exception | ( | t2n_exception * | _ex | ) | [inline] |
References ex, exception, res, and result_type.
Referenced by libt2n::command_server::handle_packet().
| void libt2n::result_container::set_result | ( | result * | _res | ) | [inline] |
References ex, regular, res, and result_type.
Referenced by libt2n::command_server::handle_packet().
friend class boost::serialization::access [friend] |
t2n_exception* libt2n::result_container::ex [private] |
Referenced by get_result(), has_exception(), set_exception(), set_result(), and ~result_container().
result* libt2n::result_container::res [private] |
Referenced by get_result(), has_result(), set_exception(), set_result(), and ~result_container().
Referenced by get_result(), has_exception(), has_result(), set_exception(), and set_result().
1.6.1
© Intra2net AG 2025
| Legal | Contact