Intra2net AG

libt2n::result_container Class Reference

contains the result (return value as libt2n::result or an libt2n::t2n_exception) of a executed command More...

#include <container.hxx>

List of all members.

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)
resultget_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

resultres
t2n_exceptionex
enum
libt2n::result_container::result_type_t 
result_type

Friends

class boost::serialization::access

Detailed Description

contains the result (return value as libt2n::result or an libt2n::t2n_exception) of a executed command


Member Enumeration Documentation

Enumerator:
regular 
exception 

Constructor & Destructor Documentation

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 (  ) 

deletes the carried result or exception objects

References ex, and res.


Member Function Documentation

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]
bool libt2n::result_container::has_result (  )  [inline]

References regular, res, and result_type.

template<class Archive >
void libt2n::result_container::serialize ( Archive &  ar,
const unsigned int  version 
) [inline, private]
void libt2n::result_container::set_exception ( t2n_exception _ex  )  [inline]
void libt2n::result_container::set_result ( result _res  )  [inline]

Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Member Data Documentation


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

Generated on 13 May 2015 by  doxygen 1.6.1
© Intra2net AG 2024 | Legal | Contact