Public Member Functions | Static Public Member Functions

TAO_PortableGroup_Loader Class Reference

#include <PortableGroup_Loader.h>

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

List of all members.

Public Member Functions

 TAO_PortableGroup_Loader (void)
 Constructor.
virtual int init (int argc, ACE_TCHAR *[])
 Initialize the PortableGroup loader hooks.

Static Public Member Functions

static int Initializer (void)
 Used to force the initialization of the ORB code.

Detailed Description

Definition at line 42 of file PortableGroup_Loader.h.


Constructor & Destructor Documentation

TAO_PortableGroup_Loader::TAO_PortableGroup_Loader ( void   ) 

Constructor.

Definition at line 17 of file PortableGroup_Loader.cpp.

{
}


Member Function Documentation

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

Initialize the PortableGroup loader hooks.

Register the Portablegroup ORBInitializer.

Reimplemented from ACE_Shared_Object.

Definition at line 22 of file PortableGroup_Loader.cpp.

{
  ACE_TRACE ("TAO_PortableGroup_Loader::init");
  // Register the ORB initializer.
  try
    {
      PortableInterceptor::ORBInitializer_ptr temp_orb_initializer =
        PortableInterceptor::ORBInitializer::_nil ();
      PortableInterceptor::ORBInitializer_var orb_initializer;

      /// Register the Portablegroup ORBInitializer.
      ACE_NEW_THROW_EX (temp_orb_initializer,
                        TAO_PortableGroup_ORBInitializer (),
                        CORBA::NO_MEMORY (
                          CORBA::SystemException::_tao_minor_code (
                            TAO::VMCID,
                            ENOMEM),
                          CORBA::COMPLETED_NO));
      orb_initializer = temp_orb_initializer;

      PortableInterceptor::register_orb_initializer (orb_initializer.in ());
    }
  catch (const CORBA::Exception& ex)
    {
      ex._tao_print_exception (
        "Unexpected exception caught while initializing the PortableGroup:");
      return 1;
    }

  return 0;
}

int TAO_PortableGroup_Loader::Initializer ( void   )  [static]

Used to force the initialization of the ORB code.

Definition at line 56 of file PortableGroup_Loader.cpp.

{
  ACE_Service_Config::process_directive (ace_svc_desc_TAO_PortableGroup_Loader);

  return -1;
}


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