Public Member Functions | Protected Member Functions

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_RT_Notify_Service::TAO_RT_Notify_Service ( void   ) 

Constructor.

Definition at line 15 of file RT_Notify_Service.cpp.

{
}

TAO_RT_Notify_Service::~TAO_RT_Notify_Service (  ) 

Destructor.

Definition at line 19 of file RT_Notify_Service.cpp.

{
}


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.

{
  TAO_Notify_Builder* builder = 0;
  ACE_NEW_THROW_EX (builder,
                    TAO_Notify_RT_Builder (),
                    CORBA::NO_MEMORY ());

  return builder;
}

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.

{
  TAO_Notify_Factory* factory =
    ACE_Dynamic_Service<TAO_Notify_Factory>::instance ("TAO_Notify_Factory");

  if (factory == 0)
    {
      ACE_NEW_THROW_EX (factory,
                        TAO_Notify_RT_Factory (),
                        CORBA::NO_MEMORY ());
    }
  return factory;
}

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.

{
  //Init the base class.
  TAO_CosNotify_Service::init_i (orb);

  TAO_Notify_RT_Properties* properties = TAO_Notify_RT_PROPERTIES::instance();

  // Resolve RTORB
  CORBA::Object_var object =
    orb->resolve_initial_references ("RTORB");

  RTCORBA::RTORB_var rt_orb =
    RTCORBA::RTORB::_narrow (object.in ());

  // Resolve RTCurrent
  object =
    orb->resolve_initial_references ("RTCurrent");

  RTCORBA::Current_var current =
    RTCORBA::Current::_narrow (object.in ());

 /// Set the properties
  properties->rt_orb (rt_orb.in ());
  properties->current (current.in ());
}

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.

{
  ACE_DEBUG ((LM_DEBUG, "Loading the Real-Time Notification Service...\n"));

  this->init_i (orb);
}


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