TAO_CEC_Push_Command Class Reference

#include <CEC_Dispatching_Task.h>

Inheritance diagram for TAO_CEC_Push_Command:

Inheritance graph
[legend]
Collaboration diagram for TAO_CEC_Push_Command:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_CEC_Push_Command (TAO_CEC_ProxyPushSupplier *proxy, CORBA::Any &event, ACE_Data_Block *data_block, ACE_Allocator *mb_allocator)
 Constructor.

virtual ~TAO_CEC_Push_Command (void)
 Destructor.

virtual int execute (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
 Command callback.


Private Attributes

TAO_CEC_ProxyPushSupplierproxy_
 The proxy.

CORBA::Any event_
 The event.


Constructor & Destructor Documentation

ACE_INLINE TAO_CEC_Push_Command::TAO_CEC_Push_Command TAO_CEC_ProxyPushSupplier proxy,
CORBA::Any &  event,
ACE_Data_Block data_block,
ACE_Allocator mb_allocator
 

Constructor.

Definition at line 42 of file CEC_Dispatching_Task.i.

References TAO_CEC_ProxyPushSupplier::_incr_refcnt.

00046   :  TAO_CEC_Dispatch_Command (data_block, mb_allocator),
00047      proxy_ (proxy)
00048 {
00049   //
00050   // Efficient copy, steal the buffer from <event>
00051   // We cannot do this on the initialization because get_buffer()
00052   // could get called first, effectively setting maximum() and
00053   // length() to 0!
00054   //
00055   // @@ TODO
00056   this->event_ = event;
00057 
00058   this->proxy_->_incr_refcnt ();
00059 }

TAO_CEC_Push_Command::~TAO_CEC_Push_Command void   )  [virtual]
 

Destructor.

Definition at line 126 of file CEC_Dispatching_Task.cpp.

References TAO_CEC_ProxyPushSupplier::_decr_refcnt().

00127 {
00128   this->proxy_->_decr_refcnt ();
00129 }


Member Function Documentation

int TAO_CEC_Push_Command::execute ACE_ENV_SINGLE_ARG_DECL_NOT_USED   )  [virtual]
 

Command callback.

Implements TAO_CEC_Dispatch_Command.

Definition at line 132 of file CEC_Dispatching_Task.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_PARAMETER, and TAO_CEC_ProxyPushSupplier::push_to_consumer().

00133 {
00134   this->proxy_->push_to_consumer (this->event_ ACE_ENV_ARG_PARAMETER);
00135   ACE_CHECK_RETURN (-1);
00136   return 0;
00137 }


Member Data Documentation

CORBA::Any TAO_CEC_Push_Command::event_ [private]
 

The event.

Definition at line 127 of file CEC_Dispatching_Task.h.

TAO_CEC_ProxyPushSupplier* TAO_CEC_Push_Command::proxy_ [private]
 

The proxy.

Definition at line 124 of file CEC_Dispatching_Task.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:19:44 2006 for TAO_CosEvent by doxygen 1.3.6