#include <ACEXML/common/Env.h>
Collaboration diagram for ACEXML_Env:

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.
References ACEXML_Exception::duplicate(), and exception_.
00015 : exception_ (0) 00016 { 00017 if (rhs.exception()) 00018 this->exception_ = rhs.exception_->duplicate(); 00019 }
| 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.
References exception_.
Referenced by ~ACEXML_Env().
00022 { 00023 delete this->exception_; 00024 this->exception_ = 0; 00025 }
| ACEXML_Env & ACEXML_Env::operator= | ( | const ACEXML_Env & | ACEXML_TRY_ENV | ) |
Assignment.
Definition at line 22 of file Env.cpp.
References exception_.
00023 { 00024 ACEXML_Env tmp (rhs); 00025 ACEXML_Exception* tmp_ex = this->exception_; 00026 this->exception_ = tmp.exception_; 00027 tmp.exception_ = tmp_ex; 00028 return *this; 00029 }
| ACEXML_Exception* exception void ACEXML_Env::const |
| void exception ACEXML_Exception* ACEXML_Env::ex |
ACEXML_Exception* ACEXML_Env::exception_ [private] |
Place holder for exception (if one occurs.).
Definition at line 63 of file Env.h.
Referenced by ACEXML_Env(), clear(), and operator=().
1.4.7