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 (void)
 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.inl.

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 119 of file CEC_Dispatching_Task.cpp.

References TAO_CEC_ProxyPushSupplier::_decr_refcnt().

00120 {
00121   this->proxy_->_decr_refcnt ();
00122 }


Member Function Documentation

int TAO_CEC_Push_Command::execute void   )  [virtual]
 

Command callback.

Implements TAO_CEC_Dispatch_Command.

Definition at line 125 of file CEC_Dispatching_Task.cpp.

References TAO_CEC_ProxyPushSupplier::push_to_consumer().

00126 {
00127   this->proxy_->push_to_consumer (this->event_);
00128   return 0;
00129 }


Member Data Documentation

CORBA::Any TAO_CEC_Push_Command::event_ [private]
 

The event.

Definition at line 125 of file CEC_Dispatching_Task.h.

TAO_CEC_ProxyPushSupplier* TAO_CEC_Push_Command::proxy_ [private]
 

The proxy.

Definition at line 122 of file CEC_Dispatching_Task.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 15:37:51 2008 for TAO_CosEvent by doxygen 1.3.6