#include <Naming_Loader.h>
Inheritance diagram for TAO_Naming_Loader:
Public Member Functions | |
TAO_Naming_Loader (void) | |
Constructor. | |
~TAO_Naming_Loader (void) | |
Destructor. | |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
virtual int | fini (void) |
virtual CORBA::Object_ptr | create_object (CORBA::ORB_ptr orb, int argc, ACE_TCHAR *argv[]) |
Protected Attributes | |
TAO_Naming_Server | naming_server_ |
Instance of the TAO_Naming_Server. | |
Private Member Functions | |
TAO_Naming_Loader (const TAO_Naming_Loader &) | |
TAO_Naming_Loader & | operator= (const TAO_Naming_Loader &) |
|
Constructor.
Definition at line 25 of file Naming_Loader.cpp.
00026 {
00027 // Constructor
00028 }
|
|
Destructor.
Definition at line 30 of file Naming_Loader.cpp.
00031 {
00032 // Destructor
00033 }
|
|
|
|
This function call initializes the Naming Service given a reference to the ORB and the command line parameters. Implements TAO_Object_Loader. Definition at line 71 of file Naming_Loader.cpp. References CORBA::Object::_nil(), TAO_Naming_Server::init_with_orb(), and naming_server_. Referenced by init().
00074 { 00075 // Initializes the Naming Service. Returns -1 00076 // on an error. 00077 int result = this->naming_server_.init_with_orb (argc, 00078 argv, 00079 orb); 00080 if (result == -1) 00081 return CORBA::Object::_nil (); 00082 00083 return 0; 00084 } |
|
Called by the Service Configurator framework to remove the Event Service. Defined in <ace/Service_Config.h> Reimplemented from ACE_Shared_Object. Definition at line 64 of file Naming_Loader.cpp. References TAO_Naming_Server::fini(), and naming_server_.
00065 { 00066 // Remove the Naming Service. 00067 return this->naming_server_.fini (); 00068 } |
|
Called by the Service Configurator framework to initialize the Event Service. Defined in <ace/Service_Config.h> Reimplemented from ACE_Shared_Object. Definition at line 36 of file Naming_Loader.cpp. References create_object(), ACE_Argv_Type_Converter::get_argc(), ACE_Argv_Type_Converter::get_ASCII_argv(), ACE_Argv_Type_Converter::get_TCHAR_argv(), and CORBA::ORB_init().
00037 { 00038 try 00039 { 00040 // Copy command line parameter. 00041 ACE_Argv_Type_Converter command_line(argc, argv); 00042 00043 // Initialize the ORB 00044 CORBA::ORB_var orb = 00045 CORBA::ORB_init (command_line.get_argc(), 00046 command_line.get_ASCII_argv(), 00047 0); 00048 00049 // This function call initializes the Naming Service 00050 CORBA::Object_var object = 00051 this->create_object (orb.in (), 00052 command_line.get_argc(), 00053 command_line.get_TCHAR_argv ()); 00054 } 00055 catch (const CORBA::Exception&) 00056 { 00057 // @@ Should we log this??? 00058 return -1; 00059 } 00060 return 0; 00061 } |
|
|
|
Instance of the TAO_Naming_Server.
Definition at line 58 of file Naming_Loader.h. Referenced by create_object(), and fini(). |