CORBA::WrongTransaction Class Reference

#include <WrongTransactionC.h>

Inheritance diagram for CORBA::WrongTransaction:

Inheritance graph
[legend]
Collaboration diagram for CORBA::WrongTransaction:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WrongTransaction (void)
 WrongTransaction (const WrongTransaction &)
 ~WrongTransaction (void)
WrongTransactionoperator= (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)

Detailed Description

Definition at line 74 of file WrongTransactionC.h.


Constructor & Destructor Documentation

CORBA::WrongTransaction::WrongTransaction ( void   ) 

Definition at line 58 of file WrongTransactionC.cpp.

00059   : CORBA::UserException (
00060         "IDL:omg.org/CORBA/WrongTransaction:1.0",
00061         "WrongTransaction"
00062       )
00063 {
00064 }

CORBA::WrongTransaction::WrongTransaction ( const WrongTransaction  ) 

CORBA::WrongTransaction::~WrongTransaction ( void   ) 

Definition at line 66 of file WrongTransactionC.cpp.

00067 {
00068 }


Member Function Documentation

CORBA::Exception * CORBA::WrongTransaction::_alloc ( void   )  [static]

Definition at line 104 of file WrongTransactionC.cpp.

References ACE_NEW_RETURN.

00105 {
00106   CORBA::Exception *retval = 0;
00107   ACE_NEW_RETURN (retval, ::CORBA::WrongTransaction, 0);
00108   return retval;
00109 }

const CORBA::WrongTransaction * CORBA::WrongTransaction::_downcast ( CORBA::Exception const *   )  [static]

The const version of narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 99 of file WrongTransactionC.cpp.

00100 {
00101   return dynamic_cast<const WrongTransaction *> (_tao_excp);
00102 }

CORBA::WrongTransaction * CORBA::WrongTransaction::_downcast ( CORBA::Exception  )  [static]

The narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 93 of file WrongTransactionC.cpp.

00094 {
00095   return dynamic_cast<WrongTransaction *> (_tao_excp);
00096 }

void CORBA::WrongTransaction::_raise ( void   )  const [virtual]

Implements CORBA::UserException.

Definition at line 123 of file WrongTransactionC.cpp.

00124 {
00125   throw *this;
00126 }

void CORBA::WrongTransaction::_tao_any_destructor ( void *   )  [static]

Used in the non-copying Any insertion operator.

Reimplemented from CORBA::Exception.

Definition at line 85 of file WrongTransactionC.cpp.

00086 {
00087   WrongTransaction *_tao_tmp_pointer =
00088     static_cast<WrongTransaction *> (_tao_void_pointer);
00089   delete _tao_tmp_pointer;
00090 }

void CORBA::WrongTransaction::_tao_decode ( TAO_InputCDR  )  [virtual]

Implements CORBA::Exception.

Definition at line 140 of file WrongTransactionC.cpp.

00143 {
00144   if (cdr >> *this)
00145     {
00146       return;
00147     }
00148 
00149   throw ::CORBA::MARSHAL ();
00150 }

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 112 of file WrongTransactionC.cpp.

References ACE_NEW_RETURN.

00113 {
00114   CORBA::Exception *result = 0;
00115   ACE_NEW_RETURN (
00116       result,
00117       ::CORBA::WrongTransaction (*this),
00118       0
00119     );
00120   return result;
00121 }

void CORBA::WrongTransaction::_tao_encode ( TAO_OutputCDR  )  const [virtual]

Implements CORBA::Exception.

Definition at line 128 of file WrongTransactionC.cpp.

00131 {
00132   if (cdr << *this)
00133     {
00134       return;
00135     }
00136 
00137   throw ::CORBA::MARSHAL ();
00138 }

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 153 of file WrongTransactionC.cpp.

References ACE_ERROR, ACE_TEXT, ACE_Dynamic_Service< TYPE >::instance(), and LM_ERROR.

00154 {
00155   TAO_AnyTypeCode_Adapter *adapter =
00156     ACE_Dynamic_Service<TAO_AnyTypeCode_Adapter>::instance (
00157         "AnyTypeCode_Adapter"
00158       );
00159   if (adapter != 0)
00160     return adapter->_tao_type_WrongTransaction ();
00161   else
00162     {
00163       ACE_ERROR ((LM_ERROR,
00164                   ACE_TEXT ("(%P|%t) %p\n"),
00165                   ACE_TEXT ("Unable to find the ")
00166                   ACE_TEXT ("AnyTypeCode Adapter instance")));
00167       return 0;
00168     }
00169 }

WrongTransaction& CORBA::WrongTransaction::operator= ( const WrongTransaction  ) 


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:39:58 2010 for TAO by  doxygen 1.4.7