#include <IFR_Service.h>
Collaboration diagram for IFR_Service:

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. | |
| void | shutdown (void) |
| Shutdown the 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.
| IFR_Service::IFR_Service | ( | void | ) |
| IFR_Service::~IFR_Service | ( | void | ) |
| int IFR_Service::fini | ( | void | ) |
Shut down the IFR Service.
Definition at line 62 of file IFR_Service.cpp.
References CORBA::Exception::_tao_print_exception(), and my_ifr_server_.
Referenced by ACE_TMAIN().
00063 { 00064 try 00065 { 00066 this->my_ifr_server_.fini (); 00067 } 00068 catch (const CORBA::Exception& ex) 00069 { 00070 ex._tao_print_exception ("IFR_Service::fini"); 00071 throw; 00072 } 00073 return 0; 00074 }
| int IFR_Service::init | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Initialize the IFR service.
Definition at line 27 of file IFR_Service.cpp.
References CORBA::Exception::_tao_print_exception(), my_ifr_server_, orb_, and CORBA::ORB_init().
Referenced by ACE_TMAIN().
00029 { 00030 int result; 00031 try 00032 { 00033 this->orb_ = CORBA::ORB_init (argc, argv); 00034 00035 result = this->my_ifr_server_.init_with_orb (argc, 00036 argv, 00037 this->orb_.in ()); 00038 if (result != 0) 00039 { 00040 return result; 00041 } 00042 00043 } 00044 catch (const CORBA::Exception& ex) 00045 { 00046 ex._tao_print_exception ("IFR_Service::init"); 00047 00048 throw; 00049 } 00050 return 0; 00051 }
| int IFR_Service::run | ( | void | ) |
Run the IFR service.
Definition at line 54 of file IFR_Service.cpp.
References orb_.
Referenced by ACE_TMAIN().
00055 { 00056 this->orb_->run (0); 00057 00058 return 0; 00059 }
| void IFR_Service::shutdown | ( | void | ) |
Shutdown the Service.
Definition at line 77 of file IFR_Service.cpp.
References orb_.
00078 { 00079 this->orb_->shutdown (); 00080 }
TAO_IFR_Server IFR_Service::my_ifr_server_ [protected] |
CORBA::ORB_var IFR_Service::orb_ [protected] |
Reference to our ORB.
Definition at line 59 of file IFR_Service.h.
Referenced by init(), run(), and shutdown().
PortableServer::POA_var IFR_Service::root_poa_ [protected] |
1.4.7