Public Member Functions | Protected Member Functions | Private Attributes

TAO::CSD::TP_Custom_Request_Operation Class Reference

Base class for all custom request operations. More...

#include <CSD_TP_Custom_Request_Operation.h>

Inheritance diagram for TAO::CSD::TP_Custom_Request_Operation:
Inheritance graph
[legend]
Collaboration diagram for TAO::CSD::TP_Custom_Request_Operation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~TP_Custom_Request_Operation ()
 Virtual Destructor.
void execute ()
 Invoked by a worker thread to perform the operation.
void cancel ()
 Invoked when the request has been cancelled.
PortableServer::Servant servant ()

Protected Member Functions

 TP_Custom_Request_Operation (PortableServer::Servant servant)
 Constructor.
virtual void execute_i ()=0
virtual void cancel_i ()=0

Private Attributes

PortableServer::ServantBase_var servant_

Detailed Description

Base class for all custom request operations.

Note:
The caller that creates a new TP_Custom_Request_Operation object needs call _add_ref () on the servant before constructing it and the TP_Custom_Request_Operation object is responsible to decrement the reference count.

TBD - Add description

Definition at line 53 of file CSD_TP_Custom_Request_Operation.h.


Constructor & Destructor Documentation

TAO::CSD::TP_Custom_Request_Operation::~TP_Custom_Request_Operation (  )  [virtual]

Virtual Destructor.

Definition at line 15 of file CSD_TP_Custom_Request_Operation.cpp.

{
}

TAO::CSD::TP_Custom_Request_Operation::TP_Custom_Request_Operation ( PortableServer::Servant  servant  )  [protected]

Constructor.

Definition at line 9 of file CSD_TP_Custom_Request_Operation.inl.

: servant_ (servant)
{
  this->servant_->_add_ref ();
}


Member Function Documentation

void TAO::CSD::TP_Custom_Request_Operation::cancel ( void   ) 

Invoked when the request has been cancelled.

Definition at line 26 of file CSD_TP_Custom_Request_Operation.inl.

{
  this->cancel_i();
}

virtual void TAO::CSD::TP_Custom_Request_Operation::cancel_i (  )  [protected, pure virtual]
void TAO::CSD::TP_Custom_Request_Operation::execute ( void   ) 

Invoked by a worker thread to perform the operation.

Definition at line 18 of file CSD_TP_Custom_Request_Operation.inl.

{
  this->execute_i();
}

virtual void TAO::CSD::TP_Custom_Request_Operation::execute_i (  )  [protected, pure virtual]
PortableServer::Servant TAO::CSD::TP_Custom_Request_Operation::servant (  ) 

Used by the TP_Strategy to obtain the target servant in order to construct the custom request object. Returns the servant as an "in" argument (the caller does not get a new 'copy'). This is useful for chaining.

Definition at line 34 of file CSD_TP_Custom_Request_Operation.inl.

{
  return this->servant_.in();
}


Member Data Documentation

PortableServer::ServantBase_var TAO::CSD::TP_Custom_Request_Operation::servant_ [private]

Definition at line 85 of file CSD_TP_Custom_Request_Operation.h.


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