#include <ACEXML/common/Env.h>
Public Member Functions | |
ACEXML_Env (void) | |
Default constructor. | |
ACEXML_Env (const ACEXML_Env &ACEXML_TRY_ENV) | |
Copy constructor. | |
ACEXML_Env & | operator= (const ACEXML_Env &ACEXML_TRY_ENV) |
Assignment. | |
~ACEXML_Env (void) | |
Destructor. | |
void | clear (void) |
Clear the exception and reset the evnrionment. | |
Public Attributes | |
ACEXML_Exception *exception void | const |
Return the contained exception. | |
void exception ACEXML_Exception * | ex |
Set the contained exception to. | |
Private Attributes | |
ACEXML_Exception * | exception_ |
Place holder for exception (if one occurs.). |
ACEXML_Env is modeled after CORBA_Environment class. It provides a place holder for callees to propagate exceptions back to callers. ACEXML does not support native exceptions at this moment.
Definition at line 37 of file Env.h.
ACEXML_Env::ACEXML_Env | ( | void | ) |
ACEXML_Env::ACEXML_Env | ( | const ACEXML_Env & | ACEXML_TRY_ENV | ) |
Copy constructor.
Definition at line 14 of file Env.cpp.
: exception_ (0) { if (rhs.exception()) this->exception_ = rhs.exception_->duplicate(); }
ACEXML_Env::~ACEXML_Env | ( | void | ) |
ACEXML_INLINE void ACEXML_Env::clear | ( | void | ) |
Clear the exception and reset the evnrionment.
Definition at line 21 of file Env.inl.
{ delete this->exception_; this->exception_ = 0; }
ACEXML_Env & ACEXML_Env::operator= | ( | const ACEXML_Env & | ACEXML_TRY_ENV | ) |
Assignment.
Definition at line 22 of file Env.cpp.
{ ACEXML_Env tmp (rhs); ACEXML_Exception* tmp_ex = this->exception_; this->exception_ = tmp.exception_; tmp.exception_ = tmp_ex; return *this; }
ACEXML_Exception* exception void ACEXML_Env::const |
void exception ACEXML_Exception* ACEXML_Env::ex |
ACEXML_Exception* ACEXML_Env::exception_ [private] |