MyAlarmdouble

NAME
SYNOPSIS
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
Author

NAME

MyAlarmdouble −

SYNOPSIS

#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)

Detailed Description

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:

Constructor & Destructor Documentation

MyAlarmdouble::MyAlarmdouble (ACE_CString _prop) [inline] Constructor

Parameters:

_prop Name of this Alarmdouble instance

References CommonCallback::prop.

MyAlarmdouble::~MyAlarmdouble () [inline] Destructor - nothing to delete.

Member Function Documentation

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
c
Error handing structure.
desc
Callback descriptor

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
c
Error handing structure.
desc
Callback descriptor

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.
desc
Callback descriptor

Returns:

True regardless of parameter values.

Author

Generated automatically by Doxygen for ACS-2015.2 C++ API from the source code.