|
MyAlarmdouble − |
|
#include <acsexmplCallbacks.h> Inherits CommonCallback. |
|
Public Member Functions |
|
MyAlarmdouble (ACE_CString _prop) |
|
~MyAlarmdouble () |
|
void alarm_raised (CORBA::Double value, const ACSErr::Completion &c, const ACS::CBDescOut &desc) |
|
void alarm_cleared (CORBA::Double value, const ACSErr::Completion &c, const ACS::CBDescOut &desc) |
|
CORBA::Boolean negotiate (ACS::TimeInterval time_to_transmit, const ACS::CBDescOut &desc) |
|
This class is the implementation of the AlarmDouble IDL interface defined in baci.idl. It is used so that we may create a local alarm for the value of a remote BACI property. There are only two useful methods: alarm_raised and alarm_cleared. They do just what their names imply. Version: |
|
MyAlarmdouble::MyAlarmdouble (ACE_CString _prop) [inline] Constructor |
|
Parameters: |
|
_prop Name of this Alarmdouble instance |
|
References CommonCallback::prop. |
|
MyAlarmdouble::~MyAlarmdouble () [inline] Destructor - nothing to delete. |
|
void MyAlarmdouble::alarm_cleared (CORBA::Double value, const ACSErr::Completion & c, const ACS::CBDescOut & desc) Method invoked when the double value goes back into the acceptable range. |
|
Parameters: |
|
value The double’s new value |
|
Returns: |
|
void |
|
void MyAlarmdouble::alarm_raised (CORBA::Double value, const ACSErr::Completion & c, const ACS::CBDescOut & desc) Method invoked when the double value goes out of range. |
|
Parameters: |
|
value The double’s current (i.e., out of
range) value |
|
Returns: |
|
void |
|
CORBA::Boolean MyAlarmdouble::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 analize 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. |
|
Returns: |
|
True regardless of parameter values. |
|
Generated automatically by Doxygen for ACS-2016.6 C++ API from the source code. |