#include <Locator_Loader.h>
Inheritance diagram for ImR_Locator_Loader:
Public Member Functions | |
ImR_Locator_Loader () | |
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[]) |
int | run (void) |
Private Member Functions | |
ImR_Locator_Loader (const ImR_Locator_Loader &) | |
ImR_Locator_Loader & | operator= (const ImR_Locator_Loader &) |
Private Attributes | |
ImR_Locator_i | service_ |
Options | opts_ |
ACE_Auto_Ptr< ImR_Locator_ORB_Runner > | runner_ |
|
Definition at line 24 of file Locator_Loader.cpp.
00025 { 00026 } |
|
|
|
Implements TAO_Object_Loader. |
|
Reimplemented from ACE_Shared_Object. Definition at line 54 of file Locator_Loader.cpp. References ACE_ASSERT, ImR_Locator_i::fini(), and ACE_Auto_Basic_Ptr< X >::reset().
00055 { 00056 ACE_ASSERT(this->runner_.get () != 0); 00057 try 00058 { 00059 int ret = this->service_.fini (); 00060 00061 this->runner_->wait (); 00062 this->runner_.reset (0); 00063 return ret; 00064 } 00065 catch (const CORBA::Exception&) 00066 { 00067 } 00068 return -1; 00069 } |
|
Reimplemented from ACE_Shared_Object. Definition at line 29 of file Locator_Loader.cpp. References ACE_ASSERT, ImR_Locator_i::init(), Options::init(), and ACE_Auto_Basic_Ptr< X >::reset().
00030 { 00031 try 00032 { 00033 int err = this->opts_.init (argc, argv); 00034 if (err != 0) 00035 return -1; 00036 00037 err = this->service_.init (this->opts_); 00038 if (err != 0) 00039 return -1; 00040 00041 // Create a thread in which to run the service 00042 ACE_ASSERT(this->runner_.get () == 0); 00043 this->runner_.reset(new ImR_Locator_ORB_Runner (*this)); 00044 this->runner_->activate (); 00045 } 00046 catch (const CORBA::Exception&) 00047 { 00048 return -1; 00049 } 00050 return 0; 00051 } |
|
|
|
Definition at line 80 of file Locator_Loader.cpp. References ACE_ERROR, LM_ERROR, and ImR_Locator_i::run(). Referenced by ImR_Locator_ORB_Runner::svc().
|
|
Definition at line 38 of file Locator_Loader.h. |
|
Definition at line 39 of file Locator_Loader.h. |
|
Definition at line 37 of file Locator_Loader.h. |