Public Member Functions | Protected Attributes

IFR_Service Class Reference

#include <IFR_Service.h>

Collaboration diagram for IFR_Service:
Collaboration graph
[legend]

List of all members.

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.

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.

{
}

IFR_Service::~IFR_Service ( void   ) 

Destructor.

Definition at line 22 of file IFR_Service.cpp.

{
}


Member Function Documentation

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   ) 

Shutdown the Service.

Definition at line 77 of file IFR_Service.cpp.

{
  this->orb_->shutdown ();
}


Member Data Documentation

TAO_IFR_Server IFR_Service::my_ifr_server_ [protected]

IFR Server instance.

Definition at line 65 of file IFR_Service.h.

Reference to our ORB.

Definition at line 59 of file IFR_Service.h.

Root POA reference.

Definition at line 62 of file IFR_Service.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines