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

enum
libt2n::result_container::result_type_t 
result_type
resultres
t2n_exceptionex

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]

References ex, and res.

libt2n::result_container::result_container ( result _res  )  [inline]

References set_result().

libt2n::result_container::result_container ( t2n_exception _ex  )  [inline]

References set_exception().

libt2n::result_container::~result_container (  ) 

deletes the carried result or exception objects

References ex, and res.


Member Function Documentation

template<class Archive>
void libt2n::result_container::serialize ( Archive &  ar,
const unsigned int  version 
) [inline, private]

void libt2n::result_container::set_result ( result _res  )  [inline]

void libt2n::result_container::set_exception ( t2n_exception _ex  )  [inline]

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, and result_type.


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 Fri Sep 26 15:37:04 2008 for libt2n by  doxygen 1.5.6