#include <IFR_Service.h>
Public Member Functions | |
IFR_Service (void) | |
Default constructor. | |
~IFR_Service (void) | |
Destructor. | |
int | init (int argc, char *argv[]) |
Initialize the IFR service. | |
int | fini (void) |
Shut down the IFR Service. | |
int | run (void) |
Run the IFR service. | |
Protected Attributes | |
CORBA::ORB_var | orb_ |
Reference to our ORB. | |
PortableServer::POA_var | root_poa_ |
Root POA reference. | |
TAO_IFR_Server | my_ifr_server_ |
IFR Server instance. |
Definition at line 33 of file IFR_Service.h.
|
Default constructor.
Definition at line 18 of file IFR_Service.cpp.
00019 { 00020 } |
|
Destructor.
Definition at line 22 of file IFR_Service.cpp.
00023 { 00024 } |
|
Shut down the IFR Service.
Definition at line 64 of file IFR_Service.cpp. References my_ifr_server_. Referenced by main().
00065 { 00066 try 00067 { 00068 this->my_ifr_server_.fini (); 00069 } 00070 catch (const CORBA::Exception& ex) 00071 { 00072 ex._tao_print_exception ("IFR_Service::fini"); 00073 throw; 00074 } 00075 return 0; 00076 } |
|
Initialize the IFR service.
Definition at line 27 of file IFR_Service.cpp. References my_ifr_server_, and CORBA::ORB_init(). Referenced by main().
00029 { 00030 int result; 00031 try 00032 { 00033 this->orb_ = CORBA::ORB_init (argc, 00034 argv, 00035 0); 00036 00037 result = this->my_ifr_server_.init_with_orb (argc, 00038 argv, 00039 this->orb_.in ()); 00040 if (result != 0) 00041 { 00042 return result; 00043 } 00044 00045 } 00046 catch (const CORBA::Exception& ex) 00047 { 00048 ex._tao_print_exception ("IFR_Service::init"); 00049 00050 throw; 00051 } 00052 return 0; 00053 } |
|
Run the IFR service.
Definition at line 56 of file IFR_Service.cpp. Referenced by main().
00057 { 00058 this->orb_->run (0); 00059 00060 return 0; 00061 } |
|
IFR Server instance.
Definition at line 62 of file IFR_Service.h. |
|
Reference to our ORB.
Definition at line 56 of file IFR_Service.h. |
|
Root POA reference.
Definition at line 59 of file IFR_Service.h. |