IFR_Service Class Reference

#include <IFR_Service.h>

List of all members.

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.


Detailed Description

A class that initializes, runs and shuts down the Interface Repository service.

Definition at line 33 of file IFR_Service.h.


Constructor & Destructor Documentation

IFR_Service::IFR_Service void   ) 
 

Default constructor.

Definition at line 18 of file IFR_Service.cpp.

00019 {
00020 }

IFR_Service::~IFR_Service void   ) 
 

Destructor.

Definition at line 22 of file IFR_Service.cpp.

00023 {
00024 }


Member Function Documentation

int IFR_Service::fini void   ) 
 

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 }

int IFR_Service::init int  argc,
char *  argv[]
 

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 }

int IFR_Service::run void   ) 
 

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 }


Member Data Documentation

TAO_IFR_Server IFR_Service::my_ifr_server_ [protected]
 

IFR Server instance.

Definition at line 62 of file IFR_Service.h.

Referenced by fini(), and init().

CORBA::ORB_var IFR_Service::orb_ [protected]
 

Reference to our ORB.

Definition at line 56 of file IFR_Service.h.

PortableServer::POA_var IFR_Service::root_poa_ [protected]
 

Root POA reference.

Definition at line 59 of file IFR_Service.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 16:32:28 2008 for TAO_IFR by doxygen 1.3.6