TAO_RT_Notify_Service Class Reference

Implemetation of the TAO_Notify_Service interface for RT Notification. More...

#include <RT_Notify_Service.h>

Inheritance diagram for TAO_RT_Notify_Service:

Inheritance graph
[legend]
Collaboration diagram for TAO_RT_Notify_Service:

Collaboration graph
[legend]
List of all members.

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_Factorycreate_factory (void)
 Create the Factory for RT Notify objects.
virtual TAO_Notify_Buildercreate_builder (void)
 Creates the Builder for RT Notify objects.

Detailed Description

Implemetation of the TAO_Notify_Service interface for RT Notification.

Definition at line 31 of file RT_Notify_Service.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_RT_Notify_Service::TAO_RT_Notify_Service ( void   ) 

Constructor.

Definition at line 15 of file RT_Notify_Service.cpp.

00016 {
00017 }

TAO_RT_Notify_Service::~TAO_RT_Notify_Service (  ) 

Destructor.

Definition at line 19 of file RT_Notify_Service.cpp.

00020 {
00021 }


Member Function Documentation

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 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:46:34 2010 for TAO_CosNotification by  doxygen 1.4.7