#include <WrongTransactionC.h>
Public Member Functions | |
WrongTransaction (void) | |
WrongTransaction (const WrongTransaction &) | |
~WrongTransaction (void) | |
WrongTransaction & | operator= (const WrongTransaction &) |
virtual CORBA::Exception * | _tao_duplicate (void) const |
Deep copy. | |
virtual void | _raise (void) const |
virtual void | _tao_encode (TAO_OutputCDR &) const |
virtual void | _tao_decode (TAO_InputCDR &) |
virtual CORBA::TypeCode_ptr | _tao_type (void) const |
Will be overridden in the concrete derived classes. | |
Static Public Member Functions | |
static void | _tao_any_destructor (void *) |
Used in the non-copying Any insertion operator. | |
static WrongTransaction * | _downcast (CORBA::Exception *) |
The narrow operation. | |
static const WrongTransaction * | _downcast (CORBA::Exception const *) |
The const version of narrow operation. | |
static CORBA::Exception * | _alloc (void) |
Definition at line 70 of file WrongTransactionC.h.
CORBA::WrongTransaction::WrongTransaction | ( | void | ) |
Definition at line 54 of file WrongTransactionC.cpp.
: CORBA::UserException ( "IDL:omg.org/CORBA/WrongTransaction:1.0", "WrongTransaction" ) { }
CORBA::WrongTransaction::WrongTransaction | ( | const WrongTransaction & | ) |
CORBA::WrongTransaction::~WrongTransaction | ( | void | ) |
Definition at line 62 of file WrongTransactionC.cpp.
{ }
CORBA::Exception * CORBA::WrongTransaction::_alloc | ( | void | ) | [static] |
Definition at line 100 of file WrongTransactionC.cpp.
{ CORBA::Exception *retval = 0; ACE_NEW_RETURN (retval, ::CORBA::WrongTransaction, 0); return retval; }
CORBA::WrongTransaction * CORBA::WrongTransaction::_downcast | ( | CORBA::Exception * | exception | ) | [static] |
The narrow operation.
Reimplemented from CORBA::UserException.
Definition at line 89 of file WrongTransactionC.cpp.
{ return dynamic_cast<WrongTransaction *> (_tao_excp); }
const CORBA::WrongTransaction * CORBA::WrongTransaction::_downcast | ( | CORBA::Exception const * | exception | ) | [static] |
The const version of narrow operation.
Reimplemented from CORBA::UserException.
Definition at line 95 of file WrongTransactionC.cpp.
{ return dynamic_cast<const WrongTransaction *> (_tao_excp); }
void CORBA::WrongTransaction::_raise | ( | void | ) | const [virtual] |
Implements CORBA::UserException.
Definition at line 119 of file WrongTransactionC.cpp.
{ throw *this; }
void CORBA::WrongTransaction::_tao_any_destructor | ( | void * | x | ) | [static] |
Used in the non-copying Any insertion operator.
Reimplemented from CORBA::Exception.
Definition at line 81 of file WrongTransactionC.cpp.
{ WrongTransaction *_tao_tmp_pointer = static_cast<WrongTransaction *> (_tao_void_pointer); delete _tao_tmp_pointer; }
void CORBA::WrongTransaction::_tao_decode | ( | TAO_InputCDR & | cdr | ) | [virtual] |
Implements CORBA::Exception.
Definition at line 136 of file WrongTransactionC.cpp.
{ if (cdr >> *this) { return; } throw ::CORBA::MARSHAL (); }
CORBA::Exception * CORBA::WrongTransaction::_tao_duplicate | ( | void | ) | const [virtual] |
Deep copy.
The following operation is used in the implementation of it performs a deep copy of the exception, normally it is implemented as:
class SomeException : public // Derives from CORBA::Exception { public: virtual CORBA::Exception *_tao_duplicate (void) const { CORBA::Exception *result = 0; ACE_NEW_RETURN ( result, SomeException (*this), 0 ); return result; } };
Implements CORBA::Exception.
Definition at line 108 of file WrongTransactionC.cpp.
{ CORBA::Exception *result = 0; ACE_NEW_RETURN ( result, ::CORBA::WrongTransaction (*this), 0 ); return result; }
void CORBA::WrongTransaction::_tao_encode | ( | TAO_OutputCDR & | cdr | ) | const [virtual] |
Implements CORBA::Exception.
Definition at line 124 of file WrongTransactionC.cpp.
{ if (cdr << *this) { return; } throw ::CORBA::MARSHAL (); }
CORBA::TypeCode_ptr CORBA::WrongTransaction::_tao_type | ( | void | ) | const [virtual] |
Will be overridden in the concrete derived classes.
Reimplemented from CORBA::UserException.
Definition at line 149 of file WrongTransactionC.cpp.
{ TAO_AnyTypeCode_Adapter *adapter = ACE_Dynamic_Service<TAO_AnyTypeCode_Adapter>::instance ( "AnyTypeCode_Adapter" ); if (adapter != 0) return adapter->_tao_type_WrongTransaction (); else { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), ACE_TEXT ("Unable to find the ") ACE_TEXT ("AnyTypeCode Adapter instance"))); return 0; } }
WrongTransaction& CORBA::WrongTransaction::operator= | ( | const WrongTransaction & | ) |