Public Member Functions | Public Attributes | Private Attributes

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.

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.

  : exception_ (0)
{
}

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   ) 

Destructor.

Definition at line 31 of file Env.cpp.

{
  this->clear();
}


Member Function Documentation

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;
}


Member Data Documentation

Return the contained exception.

Definition at line 53 of file Env.h.

Set the contained exception to.

  • ex

Definition at line 56 of file Env.h.

Place holder for exception (if one occurs.).

Definition at line 63 of file Env.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines