ALMA Computing Group

MyCBdouble Class Reference

This is the implementation of a callback class that will handle callbacks coming from the installed Monitor or asynchronous method invocation. More...

#include <acsexmplCallbacks.h>

Inheritance diagram for MyCBdouble:

Inheritance graph
[legend]
Collaboration diagram for MyCBdouble:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MyCBdouble (ACE_CString _prop)
 Constructor.
 ~MyCBdouble ()
 Destructor - nothing to delete.
void working (CORBA::Double value, const ACSErr::Completion &c, const ACS::CBDescOut &desc)
 Method invoked only within the context of a BACI monitor when a value changes or the timeout period has passed.
void done (CORBA::Double value, const ACSErr::Completion &c, const ACS::CBDescOut &desc)
 Method invoked for the final value of a BACI monitor or when an asynchronous method which returns a double is invoked.
CORBA::Boolean negotiate (ACS::TimeInterval time_to_transmit, const ACS::CBDescOut &desc)
 Method used so that client and servant can agree upon the time it takes to transmit data (generally invocations of the done method).

Detailed Description

This is the implementation of a callback class that will handle callbacks coming from the installed Monitor or asynchronous method invocation.

Definition at line 206 of file acsexmplCallbacks.h.


Constructor & Destructor Documentation

MyCBdouble::MyCBdouble ACE_CString  _prop  )  [inline]
 

Constructor.

Parameters:
_prop Name of this CBdouble instance
Definition at line 214 of file acsexmplCallbacks.h.

MyCBdouble::~MyCBdouble  )  [inline]
 

Destructor - nothing to delete.

Definition at line 219 of file acsexmplCallbacks.h.


Member Function Documentation

void MyCBdouble::done CORBA::Double  value,
const ACSErr::Completion &  c,
const ACS::CBDescOut &  desc
 

Method invoked for the final value of a BACI monitor or when an asynchronous method which returns a double is invoked.

Parameters:
value The double value we are interested in.
c Error handling structure.
desc Callback descriptor
Returns:
void

Definition at line 64 of file acsexmplCallbacksImpl.cpp.

CORBA::Boolean MyCBdouble::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.

Definition at line 263 of file acsexmplCallbacks.h.

void MyCBdouble::working CORBA::Double  value,
const ACSErr::Completion &  c,
const ACS::CBDescOut &  desc
 

Method invoked only within the context of a BACI monitor when a value changes or the timeout period has passed.

Parameters:
value The double value of the BACI property.
c Error handling structure.
desc Callback descriptor
Returns:
void

Definition at line 47 of file acsexmplCallbacksImpl.cpp.


The documentation for this class was generated from the following files: