TAO_Notify_RT_StructuredProxyPushSupplier Class Reference

#include <RT_StructuredProxyPushSupplier.h>

Inheritance diagram for TAO_Notify_RT_StructuredProxyPushSupplier:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_RT_StructuredProxyPushSupplier:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_RT_StructuredProxyPushSupplier (void)
 Constructor.
 ~TAO_Notify_RT_StructuredProxyPushSupplier ()
 Destructor.
virtual CORBA::Object_ptr activate (PortableServer::Servant servant)
 Activate this object and obtain the Event_Forwarder interface.
virtual CORBA::Object_ptr activate (PortableServer::Servant servant, CORBA::Long id)
 Dummy method to prevent hidden TAO_Notify_Proxy::activate warning.
void deliver (TAO_Notify_Method_Request_Dispatch_No_Copy &request)
 Dispatch Event to consumer.
virtual void push_no_filtering (const TAO_Notify_Event *event)
 Dispatch Event to consumer, no filtering.

Private Attributes

Event_Forwarder::StructuredProxyPushSupplier_var event_forwarder_
 Our ref.

Detailed Description

Definition at line 32 of file RT_StructuredProxyPushSupplier.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_RT_StructuredProxyPushSupplier::TAO_Notify_RT_StructuredProxyPushSupplier ( void   ) 

Constructor.

Definition at line 13 of file RT_StructuredProxyPushSupplier.cpp.

00014 {
00015 }

TAO_Notify_RT_StructuredProxyPushSupplier::~TAO_Notify_RT_StructuredProxyPushSupplier (  ) 

Destructor.

Definition at line 17 of file RT_StructuredProxyPushSupplier.cpp.

00018 {
00019 }


Member Function Documentation

CORBA::Object_ptr TAO_Notify_RT_StructuredProxyPushSupplier::activate ( PortableServer::Servant  servant,
CORBA::Long  id 
) [virtual]

Dummy method to prevent hidden TAO_Notify_Proxy::activate warning.

Reimplemented from TAO_Notify_Proxy.

Definition at line 35 of file RT_StructuredProxyPushSupplier.cpp.

References CORBA::Object::_nil().

00037 {
00038    return CORBA::Object::_nil ();
00039 }

CORBA::Object_ptr TAO_Notify_RT_StructuredProxyPushSupplier::activate ( PortableServer::Servant  servant  )  [virtual]

Activate this object and obtain the Event_Forwarder interface.

Reimplemented from TAO_Notify_Proxy.

Definition at line 22 of file RT_StructuredProxyPushSupplier.cpp.

References TAO_Pseudo_Var_T< T >::_retn(), TAO_Notify_Proxy::activate(), event_forwarder_, TAO_Pseudo_Var_T< T >::in(), TAO_Notify_Object::ref(), and TAO_Notify_Proxy_T< POA_Event_Forwarder::StructuredProxyPushSupplier >::servant().

00023 {
00024   CORBA::Object_var object = TAO_Notify_Proxy::activate (servant);
00025 
00026   // Obtain our ref.
00027   CORBA::Object_var obj = this->ref ();
00028 
00029   this->event_forwarder_ = Event_Forwarder::StructuredProxyPushSupplier::_narrow (obj.in ());
00030 
00031   return object._retn ();
00032 }

void TAO_Notify_RT_StructuredProxyPushSupplier::deliver ( TAO_Notify_Method_Request_Dispatch_No_Copy request  )  [virtual]

Dispatch Event to consumer.

Reimplemented from TAO_Notify_ProxySupplier.

Definition at line 42 of file RT_StructuredProxyPushSupplier.cpp.

References CORBA::Exception::_tao_print_exception(), TAO_Notify_Method_Request_Event::event(), TAO_Notify_Event::push(), and TAO_debug_level.

00043 {
00044   try
00045     {
00046       request.event()->push (this->event_forwarder_.in ());
00047     }
00048   catch (const CORBA::Exception& ex)
00049     {
00050       if (TAO_debug_level > 2)
00051         {
00052           ex._tao_print_exception (
00053             "(%P|%t) TAO_Notify_RT_StructuredProxyPushSupplier::push failed\n");
00054         }
00055 
00056     }
00057 }

void TAO_Notify_RT_StructuredProxyPushSupplier::push_no_filtering ( const TAO_Notify_Event event  )  [virtual]

Dispatch Event to consumer, no filtering.

Definition at line 60 of file RT_StructuredProxyPushSupplier.cpp.

References CORBA::Exception::_tao_print_exception(), TAO_Notify_Event::push_no_filtering(), and TAO_debug_level.

00061 {
00062   try
00063     {
00064       event->push_no_filtering (this->event_forwarder_.in ());
00065     }
00066   catch (const CORBA::Exception& ex)
00067     {
00068       if (TAO_debug_level > 2)
00069         {
00070           ex._tao_print_exception (
00071             "(%P|%t) TAO_Notify_RT_StructuredProxyPushSupplier::push failed\n");
00072         }
00073 
00074     }
00075 }


Member Data Documentation

Event_Forwarder::StructuredProxyPushSupplier_var TAO_Notify_RT_StructuredProxyPushSupplier::event_forwarder_ [private]

Our ref.

Definition at line 57 of file RT_StructuredProxyPushSupplier.h.

Referenced by activate().


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