Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 Methods

 ACEXML_Env (void)
 Default constructor. More...

 ACEXML_Env (const ACEXML_Env &ACEXML_TRY_ENV)
 Copy constructor. More...

ACEXML_Env & operator= (const ACEXML_Env &ACEXML_TRY_ENV)
 Assignment. More...

 ~ACEXML_Env (void)
 Destructor. More...

void clear (void)
 Clear the exception and reset the evnrionment. More...


Public Attributes

ACEXML_Exception *exception
void 
const
 Return the contained exception. More...

void exception ACEXML_Exceptionex
 Set the contained exception to
  • ex.
More...



Private Attributes

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


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 13 of file Env.i.

References exception_.

Referenced by ~ACEXML_Env.

00014 {
00015   delete this->exception_;
00016   this->exception_ = 0;
00017 }

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 Mon Jun 16 13:27:00 2003 for ACEXML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002