#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.
|
Default constructor.
Definition at line 9 of file Env.cpp.
00010 : exception_ (0) 00011 { 00012 } |
|
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 } |
|
Destructor.
Definition at line 31 of file Env.cpp. References clear().
00032 { 00033 this->clear(); 00034 } |
|
Clear the exception and reset the evnrionment.
Definition at line 21 of file Env.i. References exception_. Referenced by ~ACEXML_Env().
00022 { 00023 delete this->exception_; 00024 this->exception_ = 0; 00025 } |
|
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 } |
|
Return the contained exception.
|
|
Set the contained exception to
|
|
Place holder for exception (if one occurs.).
Definition at line 63 of file Env.h. Referenced by ACEXML_Env(), clear(), and operator=(). |