#include <IFR_Service.h>
Public Member Functions | |
IFR_Service (void) | |
Default constructor. | |
~IFR_Service (void) | |
Destructor. | |
int | init (int argc, ACE_TCHAR *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. |
A class that initializes, runs and shuts down the Interface Repository service.
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.
{ try { this->my_ifr_server_.fini (); } catch (const CORBA::Exception& ex) { ex._tao_print_exception ("IFR_Service::fini"); throw; } return 0; }
int IFR_Service::init | ( | int | argc, | |
ACE_TCHAR * | argv[] | |||
) |
Initialize the IFR service.
Definition at line 27 of file IFR_Service.cpp.
{ int result; try { this->orb_ = CORBA::ORB_init (argc, argv); result = this->my_ifr_server_.init_with_orb (argc, argv, this->orb_.in ()); if (result != 0) { return result; } } catch (const CORBA::Exception& ex) { ex._tao_print_exception ("IFR_Service::init"); throw; } return 0; }
int IFR_Service::run | ( | void | ) |
Run the IFR service.
Definition at line 54 of file IFR_Service.cpp.
{ this->orb_->run (0); return 0; }
void IFR_Service::shutdown | ( | void | ) |
TAO_IFR_Server IFR_Service::my_ifr_server_ [protected] |
IFR Server instance.
Definition at line 65 of file IFR_Service.h.
CORBA::ORB_var IFR_Service::orb_ [protected] |
Reference to our ORB.
Definition at line 59 of file IFR_Service.h.
PortableServer::POA_var IFR_Service::root_poa_ [protected] |
Root POA reference.
Definition at line 62 of file IFR_Service.h.