Public Member Functions | Private Attributes

TAO_PI_Server_Loader Class Reference

#include <PI_Server_Loader.h>

Inheritance diagram for TAO_PI_Server_Loader:
Inheritance graph
[legend]
Collaboration diagram for TAO_PI_Server_Loader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_PI_Server_Loader (void)
 Constructor.
virtual ~TAO_PI_Server_Loader (void)
 Destructor.
virtual int init (int argc, ACE_TCHAR *[])
 Initialize the PI_Server loader hooks.

Private Attributes

bool initialized_
 Set to true after init is called.

Detailed Description

Definition at line 28 of file PI_Server_Loader.h.


Constructor & Destructor Documentation

TAO_PI_Server_Loader::TAO_PI_Server_Loader ( void   ) 

Constructor.

Definition at line 17 of file PI_Server_Loader.cpp.

  : initialized_ (false)
{
}

TAO_PI_Server_Loader::~TAO_PI_Server_Loader ( void   )  [virtual]

Destructor.

Definition at line 22 of file PI_Server_Loader.cpp.

{
}


Member Function Documentation

int TAO_PI_Server_Loader::init ( int  argc,
ACE_TCHAR [] 
) [virtual]

Initialize the PI_Server loader hooks.

Register the Messaging ORBInitializer.

Reimplemented from ACE_Shared_Object.

Definition at line 27 of file PI_Server_Loader.cpp.

{
  ACE_TRACE ("TAO_PI_Server_Loader::init");

  // Only allow initialization once.
  if (this->initialized_)
    return 0;

  this->initialized_ = true;

  // Register the ORB initializer.
  try
    {
      /// Register the Messaging ORBInitializer.
      PortableInterceptor::ORBInitializer_ptr temp_orb_initializer =
        PortableInterceptor::ORBInitializer::_nil ();

      ACE_NEW_THROW_EX (temp_orb_initializer,
                        TAO_PortableServer_ORBInitializer,
                        CORBA::NO_MEMORY (
                          CORBA::SystemException::_tao_minor_code (
                            TAO::VMCID,
                            ENOMEM),
                          CORBA::COMPLETED_NO));

      PortableInterceptor::ORBInitializer_var orb_initializer =
        temp_orb_initializer;

      PortableInterceptor::register_orb_initializer (orb_initializer.in ());
    }
  catch (const ::CORBA::Exception& ex)
    {
      ex._tao_print_exception ("Caught exception:");
      return -1;
    }

  return 0;
}


Member Data Documentation

Set to true after init is called.

Definition at line 42 of file PI_Server_Loader.h.


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