ACEXML_Env Class Reference

ACEXML_Env. More...

#include <ACEXML/common/Env.h>

Collaboration diagram for ACEXML_Env:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACEXML_Env (void)
 Default constructor.

 ACEXML_Env (const ACEXML_Env &ACEXML_TRY_ENV)
 Copy constructor.

ACEXML_Envoperator= (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_Exceptionex
 Set the contained exception to
  • ex.



Private Attributes

ACEXML_Exceptionexception_
 Place holder for exception (if one occurs.).


Detailed Description

ACEXML_Env.

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.

See also:
ACEXML_Exception

Definition at line 37 of file Env.h.


Constructor & Destructor Documentation

ACEXML_Env::ACEXML_Env void   ) 
 

Default constructor.

Definition at line 9 of file Env.cpp.

00010   : exception_ (0)
00011 {
00012 }

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   ) 
 

Destructor.

Definition at line 31 of file Env.cpp.

References clear().

00032 {
00033   this->clear();
00034 }


Member Function Documentation

ACEXML_INLINE void ACEXML_Env::clear void   ) 
 

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 }

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 }


Member Data Documentation

ACEXML_Exception* exception void ACEXML_Env::const
 

Return the contained exception.

Definition at line 53 of file Env.h.

void exception ACEXML_Exception* ACEXML_Env::ex
 

Set the contained exception to

  • ex.

Definition at line 56 of file Env.h.

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


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:47:55 2006 for ACEXML by doxygen 1.3.6