Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MyCBvoid Class Reference

#include <acsexmplCallbacks.h>

Inheritance diagram for MyCBvoid:

Inheritance graph
[legend]
Collaboration diagram for MyCBvoid:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MyCBvoid (ACE_CString _prop)
 ~MyCBvoid ()
void working (const ACSErr::Completion &c, const ACS::CBDescOut &desc)
void done (const ACSErr::Completion &c, const ACS::CBDescOut &desc)
CORBA::Boolean negotiate (ACS::TimeInterval time_to_transmit, const ACS::CBDescOut &desc)

Detailed Description

This callback class is used so the caller of asynchronous methods can be informed when the method invocation has finally completed.


Constructor & Destructor Documentation

MyCBvoid::MyCBvoid ACE_CString  _prop  )  [inline]
 

Constructor

Parameters:
_prop Name of this CBvoid instance

MyCBvoid::~MyCBvoid  )  [inline]
 

Destructor - nothing to delete.


Member Function Documentation

void MyCBvoid::done const ACSErr::Completion c,
const ACS::CBDescOut desc
 

Method invoked to inform the developer of a client that the asynchronous method has completed.

Parameters:
c Error handling structure.
desc Callback descriptor
Returns:
void

CORBA::Boolean MyCBvoid::negotiate ACS::TimeInterval  time_to_transmit,
const ACS::CBDescOut desc
[inline]
 

Method used so that client and servant can agree upon the time it takes to transmit data (generally invocations of the done method). A smart callback implementation would analyze the value of time_to_transmit and decide whether the value is acceptable, but we just return true regardless in this simplistic example.

Parameters:
time_to_transmit Time to transmit data.
desc Callback descriptor
Returns:
True regardless of parameter values.

void MyCBvoid::working const ACSErr::Completion c,
const ACS::CBDescOut desc
 

Method invoked only to inform the developer of a client that the asynchronous method has not "forgot about it", but is still working on processing the request.

Parameters:
c Error handling structure.
desc Callback descriptor
Returns:
void


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:36:41 2009 for ACS C++ API by doxygen 1.3.8