#include <RT_Notify_Service.h>
Inheritance diagram for TAO_RT_Notify_Service:
Public Member Functions | |
TAO_RT_Notify_Service (void) | |
Constuctor. | |
~TAO_RT_Notify_Service () | |
Destructor. | |
virtual void | init_service (CORBA::ORB_ptr orb) |
Init the service. | |
Protected Member Functions | |
virtual void | init_i (CORBA::ORB_ptr orb) |
Init the data members. | |
virtual TAO_Notify_Factory * | create_factory () |
Create the Factory for RT Notify objects. | |
virtual TAO_Notify_Builder * | create_builder () |
Creates the Builder for RT Notify objects. |
Definition at line 33 of file RT_Notify_Service.h.
|
Constuctor.
Definition at line 15 of file RT_Notify_Service.cpp.
00016 { 00017 } |
|
Destructor.
Definition at line 19 of file RT_Notify_Service.cpp.
00020 { 00021 } |
|
Creates the Builder for RT Notify objects.
Reimplemented from TAO_CosNotify_Service. Definition at line 85 of file RT_Notify_Service.cpp. References ACE_CHECK_RETURN, and ACE_NEW_THROW_EX.
00086 { 00087 TAO_Notify_Builder* builder = 0; 00088 ACE_NEW_THROW_EX (builder, 00089 TAO_Notify_RT_Builder (), 00090 CORBA::NO_MEMORY ()); 00091 ACE_CHECK_RETURN(0); 00092 00093 return builder; 00094 } |
|
Create the Factory for RT Notify objects.
Reimplemented from TAO_CosNotify_Service. Definition at line 69 of file RT_Notify_Service.cpp. References ACE_CHECK_RETURN, ACE_NEW_THROW_EX, and ACE_Dynamic_Service< TYPE >::instance().
00070 { 00071 TAO_Notify_Factory* factory = 00072 ACE_Dynamic_Service<TAO_Notify_Factory>::instance ("TAO_Notify_Factory"); 00073 00074 if (factory == 0) 00075 { 00076 ACE_NEW_THROW_EX (factory, 00077 TAO_Notify_RT_Factory (), 00078 CORBA::NO_MEMORY ()); 00079 ACE_CHECK_RETURN(0); 00080 } 00081 return factory; 00082 } |
|
Init the data members. Set the properties Reimplemented from TAO_CosNotify_Service. Definition at line 33 of file RT_Notify_Service.cpp. References ACE_CHECK, ACE_ENV_ARG_PARAMETER, TAO_Notify_RT_Properties::current(), TAO_CosNotify_Service::init_i(), TAO_Singleton< TYPE, ACE_LOCK >::instance(), and TAO_Notify_RT_Properties::rt_orb(). Referenced by init_service().
00034 { 00035 //Init the base class. 00036 TAO_CosNotify_Service::init_i (orb ACE_ENV_ARG_PARAMETER); 00037 ACE_CHECK; 00038 00039 TAO_Notify_RT_Properties* properties = TAO_Notify_RT_PROPERTIES::instance(); 00040 00041 // Resolve RTORB 00042 CORBA::Object_var object = 00043 orb->resolve_initial_references ("RTORB" 00044 ACE_ENV_ARG_PARAMETER); 00045 ACE_CHECK; 00046 00047 RTCORBA::RTORB_var rt_orb = 00048 RTCORBA::RTORB::_narrow (object.in () 00049 ACE_ENV_ARG_PARAMETER); 00050 ACE_CHECK; 00051 00052 // Resolve RTCurrent 00053 object = 00054 orb->resolve_initial_references ("RTCurrent" 00055 ACE_ENV_ARG_PARAMETER); 00056 ACE_CHECK; 00057 00058 RTCORBA::Current_var current = 00059 RTCORBA::Current::_narrow (object.in () 00060 ACE_ENV_ARG_PARAMETER); 00061 ACE_CHECK; 00062 00063 /// Set the properties 00064 properties->rt_orb (rt_orb.in ()); 00065 properties->current (current.in ()); 00066 } |
|
Init the service.
Reimplemented from TAO_CosNotify_Service. Definition at line 24 of file RT_Notify_Service.cpp. References ACE_CHECK, ACE_DEBUG, ACE_ENV_ARG_PARAMETER, init_i(), and LM_DEBUG.
|