#include <RT_Notify_Service.h>
Inheritance diagram for TAO_RT_Notify_Service:
Public Member Functions | |
TAO_RT_Notify_Service (void) | |
Constructor. | |
~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 (void) |
Create the Factory for RT Notify objects. | |
virtual TAO_Notify_Builder * | create_builder (void) |
Creates the Builder for RT Notify objects. |
Definition at line 31 of file RT_Notify_Service.h.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_RT_Notify_Service::TAO_RT_Notify_Service | ( | void | ) |
TAO_RT_Notify_Service::~TAO_RT_Notify_Service | ( | ) |
TAO_Notify_Builder * TAO_RT_Notify_Service::create_builder | ( | void | ) | [protected, virtual] |
Creates the Builder for RT Notify objects.
Reimplemented from TAO_CosNotify_Service.
Definition at line 74 of file RT_Notify_Service.cpp.
References ACE_NEW_THROW_EX, and TAO_CosNotify_Service::builder().
00075 { 00076 TAO_Notify_Builder* builder = 0; 00077 ACE_NEW_THROW_EX (builder, 00078 TAO_Notify_RT_Builder (), 00079 CORBA::NO_MEMORY ()); 00080 00081 return builder; 00082 }
TAO_Notify_Factory * TAO_RT_Notify_Service::create_factory | ( | void | ) | [protected, virtual] |
Create the Factory for RT Notify objects.
Reimplemented from TAO_CosNotify_Service.
Definition at line 59 of file RT_Notify_Service.cpp.
References ACE_NEW_THROW_EX, TAO_CosNotify_Service::factory(), and ACE_Dynamic_Service< TYPE >::instance().
00060 { 00061 TAO_Notify_Factory* factory = 00062 ACE_Dynamic_Service<TAO_Notify_Factory>::instance ("TAO_Notify_Factory"); 00063 00064 if (factory == 0) 00065 { 00066 ACE_NEW_THROW_EX (factory, 00067 TAO_Notify_RT_Factory (), 00068 CORBA::NO_MEMORY ()); 00069 } 00070 return factory; 00071 }
void TAO_RT_Notify_Service::init_i | ( | CORBA::ORB_ptr | orb | ) | [protected, virtual] |
Init the data members.
Set the properties
Reimplemented from TAO_CosNotify_Service.
Definition at line 32 of file RT_Notify_Service.cpp.
References TAO_Notify_RT_Properties::current(), TAO_Pseudo_Var_T< T >::in(), TAO_CosNotify_Service::init_i(), TAO_Notify_RT_Properties::instance(), CORBA::ORB::resolve_initial_references(), and TAO_Notify_RT_Properties::rt_orb().
Referenced by init_service().
00033 { 00034 //Init the base class. 00035 TAO_CosNotify_Service::init_i (orb); 00036 00037 TAO_Notify_RT_Properties* properties = TAO_Notify_RT_PROPERTIES::instance(); 00038 00039 // Resolve RTORB 00040 CORBA::Object_var object = 00041 orb->resolve_initial_references ("RTORB"); 00042 00043 RTCORBA::RTORB_var rt_orb = 00044 RTCORBA::RTORB::_narrow (object.in ()); 00045 00046 // Resolve RTCurrent 00047 object = 00048 orb->resolve_initial_references ("RTCurrent"); 00049 00050 RTCORBA::Current_var current = 00051 RTCORBA::Current::_narrow (object.in ()); 00052 00053 /// Set the properties 00054 properties->rt_orb (rt_orb.in ()); 00055 properties->current (current.in ()); 00056 }
void TAO_RT_Notify_Service::init_service | ( | CORBA::ORB_ptr | orb | ) | [virtual] |
Init the service.
Reimplemented from TAO_CosNotify_Service.
Definition at line 24 of file RT_Notify_Service.cpp.
References ACE_DEBUG, init_i(), and LM_DEBUG.
00025 { 00026 ACE_DEBUG ((LM_DEBUG, "Loading the Real-Time Notification Service...\n")); 00027 00028 this->init_i (orb); 00029 }