#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 () |
Shut down the IFR Service. | |
int | run () |
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 71 of file IFR_Service.cpp. References ACE_ANY_EXCEPTION, ACE_CATCHANY, ACE_CHECK_RETURN, ACE_ENDTRY, ACE_PRINT_EXCEPTION, ACE_RE_THROW, ACE_TRY, ACE_TRY_CHECK, and my_ifr_server_. Referenced by main().
00072 { 00073 ACE_TRY 00074 { 00075 this->my_ifr_server_.fini (); 00076 ACE_TRY_CHECK; 00077 } 00078 ACE_CATCHANY 00079 { 00080 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, 00081 "IFR_Service::fini"); 00082 ACE_RE_THROW; 00083 } 00084 ACE_ENDTRY; 00085 ACE_CHECK_RETURN (-1); 00086 return 0; 00087 } |
|
Initialize the IFR service.
Definition at line 27 of file IFR_Service.cpp. References ACE_ANY_EXCEPTION, ACE_CATCHANY, ACE_CHECK_RETURN, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_PRINT_EXCEPTION, ACE_RE_THROW, ACE_TRY, ACE_TRY_CHECK, my_ifr_server_, and CORBA::ORB_init(). Referenced by main().
00030 { 00031 int result; 00032 ACE_TRY 00033 { 00034 this->orb_ = CORBA::ORB_init (argc, 00035 argv, 00036 0 00037 ACE_ENV_ARG_PARAMETER); 00038 ACE_TRY_CHECK; 00039 00040 result = this->my_ifr_server_.init_with_orb (argc, 00041 argv, 00042 this->orb_.in ()); 00043 if (result == -1) 00044 { 00045 return result; 00046 } 00047 00048 } 00049 ACE_CATCHANY 00050 { 00051 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, 00052 "IFR_Service::init"); 00053 00054 ACE_RE_THROW; 00055 } 00056 ACE_ENDTRY; 00057 ACE_CHECK_RETURN (-1); 00058 return 0; 00059 } |
|
Run the IFR service.
Definition at line 62 of file IFR_Service.cpp. References ACE_CHECK_RETURN, and ACE_ENV_ARG_PARAMETER. Referenced by main().
00063 { 00064 this->orb_->run (0 ACE_ENV_ARG_PARAMETER); 00065 ACE_CHECK_RETURN (-1); 00066 00067 return 0; 00068 } |
|
IFR Server instance.
Definition at line 63 of file IFR_Service.h. |
|
Reference to our ORB.
Definition at line 57 of file IFR_Service.h. |
|
Root POA reference.
Definition at line 60 of file IFR_Service.h. |