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

CORBA_TypeCode::BadKind Class Reference

#include <Typecode.h>

Inheritance diagram for CORBA_TypeCode::BadKind:

Inheritance graph
[legend]
Collaboration diagram for CORBA_TypeCode::BadKind:

Collaboration graph
[legend]
List of all members.

Public Methods

 BadKind (void)
virtual CORBA::Exception_tao_duplicate (void) const
 Deep copy. More...

virtual void _raise (void)
virtual void _tao_encode (TAO_OutputCDR &cdr ACE_ENV_ARG_DECL_NOT_USED) const
virtual void _tao_decode (TAO_InputCDR &cdr ACE_ENV_ARG_DECL_NOT_USED)

Static Public Methods

BadKind * _downcast (CORBA_Exception *ex)
 The narrow operation. More...

CORBA::Exception_alloc (void)

Constructor & Destructor Documentation

CORBA_TypeCode::BadKind::BadKind void   
 

Definition at line 93 of file Typecode.cpp.

00094   : CORBA_UserException ("IDL:omg.org/CORBA/TypeCode/BadKind:1.0",
00095                          "BadKind")
00096 {
00097 }


Member Function Documentation

CORBA::Exception* CORBA_TypeCode::BadKind::_alloc void    [static]
 

CORBA_TypeCode::BadKind * CORBA_TypeCode::BadKind::_downcast CORBA_Exception   ex [static]
 

The narrow operation.

Reimplemented from CORBA_UserException.

Definition at line 100 of file Typecode.cpp.

References CORBA_Exception::_is_a.

00101 {
00102   if (ex->_is_a ("IDL:omg.org/CORBA/TypeCode/BadKind:1.0"))
00103     return ACE_dynamic_cast (CORBA_TypeCode::BadKind*, ex);
00104   return 0;
00105 }

void CORBA_TypeCode::BadKind::_raise void    [virtual]
 

Implements CORBA_Exception.

Definition at line 119 of file Typecode.cpp.

References TAO_RAISE.

00120 {
00121   TAO_RAISE(*this);
00122 }

virtual void CORBA_TypeCode::BadKind::_tao_decode TAO_InputCDR &cdr    ACE_ENV_ARG_DECL_NOT_USED [virtual]
 

Implements CORBA_Exception.

CORBA::Exception * CORBA_TypeCode::BadKind::_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
   {
     return new SomeException (*this);
   }
 };
 

Implements CORBA_Exception.

Definition at line 108 of file Typecode.cpp.

References ACE_NEW_RETURN.

00109 {
00110   CORBA::Exception *result;
00111   ACE_NEW_RETURN (
00112       result,
00113       CORBA_TypeCode::BadKind (*this),
00114       0
00115     );
00116   return result;
00117 }

void CORBA_TypeCode::BadKind::_tao_encode TAO_OutputCDR &cdr    ACE_ENV_ARG_DECL_NOT_USED const [virtual]
 

Implements CORBA_Exception.

Definition at line 124 of file Typecode.cpp.

References CORBA_Exception::_rep_id, ACE_ENV_ARG_DECL, and ACE_THROW.

00128 {
00129   if (cdr << this->_rep_id ())
00130     {
00131       return;
00132     }
00133 
00134   ACE_THROW (CORBA::MARSHAL ());
00135 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:02:00 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002