Public Member Functions | Static Public Member Functions

CORBA::ORB::InvalidName Class Reference

#include <ORB.h>

Inheritance diagram for CORBA::ORB::InvalidName:
Inheritance graph
[legend]
Collaboration diagram for CORBA::ORB::InvalidName:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 InvalidName (void)
 InvalidName (const InvalidName &)
 ~InvalidName (void)
InvalidNameoperator= (const InvalidName &)
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 &)

Static Public Member Functions

static InvalidName_downcast (CORBA::Exception *)
 The narrow operation.
static CORBA::Exception_alloc (void)

Detailed Description

Definition at line 166 of file ORB.h.


Constructor & Destructor Documentation

CORBA::ORB::InvalidName::InvalidName ( void   ) 

Definition at line 55 of file ORB.cpp.

  : CORBA::UserException ("IDL:omg.org/CORBA/ORB/InvalidName:1.0",
                          "InvalidName")
{
}

CORBA::ORB::InvalidName::InvalidName ( const InvalidName exc  ) 

Definition at line 67 of file ORB.cpp.

  : CORBA::UserException (exc._rep_id (),
                          exc._name ())
{
}

CORBA::ORB::InvalidName::~InvalidName ( void   ) 

Definition at line 62 of file ORB.cpp.

{
}


Member Function Documentation

CORBA::Exception * CORBA::ORB::InvalidName::_alloc ( void   )  [static]

Definition at line 87 of file ORB.cpp.

{
  CORBA::Exception *retval = 0;
  ACE_NEW_RETURN (retval, ::CORBA::ORB::InvalidName, 0);
  return retval;
}

CORBA::ORB::InvalidName * CORBA::ORB::InvalidName::_downcast ( CORBA::Exception exception  )  [static]

The narrow operation.

Reimplemented from CORBA::UserException.

Definition at line 82 of file ORB.cpp.

{
  return dynamic_cast<InvalidName *> (exc);
}

void CORBA::ORB::InvalidName::_raise ( void   )  const [virtual]

Implements CORBA::UserException.

Definition at line 105 of file ORB.cpp.

{
  throw *this;
}

void CORBA::ORB::InvalidName::_tao_decode ( TAO_InputCDR  )  [virtual]

Implements CORBA::Exception.

Definition at line 115 of file ORB.cpp.

{
  throw ::CORBA::MARSHAL ();
}

CORBA::Exception * CORBA::ORB::InvalidName::_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 95 of file ORB.cpp.

{
  CORBA::Exception *result = 0;
  ACE_NEW_RETURN (
      result,
      ::CORBA::ORB::InvalidName (*this),
      0);
  return result;
}

void CORBA::ORB::InvalidName::_tao_encode ( TAO_OutputCDR  )  const [virtual]

Implements CORBA::Exception.

Definition at line 110 of file ORB.cpp.

{
  throw ::CORBA::MARSHAL ();
}

InvalidName& CORBA::ORB::InvalidName::operator= ( const InvalidName  ) 

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