cumbia-tango 1.x
C++ multi threaded library based on cumbia and the Tango control system
|
an interface for a Tango action, typically a reader or a writer are implementors More...
#include <cutangoactioni.h>
Public Types | |
enum | Type { ActionUnknown = -1 , Reader = 0 , Writer , ReaderConfig , WriterConfig , TaDb } |
list of types of actions More... | |
Public Member Functions | |
virtual | ~CuTangoActionI () |
virtual destructor, to make compilers happy More... | |
virtual TSource | getSource () const =0 |
return a TSource object that stores information about the Tango source More... | |
virtual Type | getType () const =0 |
returns the type of CuTangoActionI implemented More... | |
virtual void | addDataListener (CuDataListener *l)=0 |
insert a CuDataListener to the list of listeners of data updates More... | |
virtual void | removeDataListener (CuDataListener *l)=0 |
remove a CuDataListener from the list of listeners of data updates More... | |
virtual size_t | dataListenersCount ()=0 |
return the number of registered data listeners More... | |
virtual void | start ()=0 |
the method where activities are created and registered More... | |
virtual void | stop ()=0 |
the method where activities are unregistered from Cumbia More... | |
virtual void | sendData (const CuData &data)=0 |
subclasses will implement the necessary code to set data on themselves or to the activities More... | |
virtual void | getData (CuData &d_inout) const =0 |
subclasses will implement the necessary code to analyze the request stored in the input argument and fill it in with output data More... | |
an interface for a Tango action, typically a reader or a writer are implementors
A CuTangoActionI describes what readers or writers usually do. They do actions, and they must adhere to this interface that requires to
enum CuTangoActionI::Type |
|
virtual |
virtual destructor, to make compilers happy
|
pure virtual |
insert a CuDataListener to the list of listeners of data updates
l | a CuDataListener that receives notifications when data is ready, through CuDataListener::onUpdate |
Implemented in CuTaDb, CuTConfiguration, CuTReader, and CuTWriter.
Referenced by CumbiaTango::addAction().
|
pure virtual |
return the number of registered data listeners
Implemented in CuTaDb, CuTConfiguration, CuTReader, and CuTWriter.
|
pure virtual |
subclasses will implement the necessary code to analyze the request stored in the input argument and fill it in with output data
data | a CuData compiled with the necessary fields accepted by the specific implementation as input argument. data will contain additional output fields filled in by the method when it returns. |
Implemented in CuTaDb, CuTConfiguration, CuTWriter, and CuTReader.
|
pure virtual |
return a TSource object that stores information about the Tango source
Implemented in CuTaDb, CuTConfiguration, CuTReader, and CuTWriter.
Referenced by CuPollingService::actionRegistered(), CuPoller::registerAction(), and CuPoller::unregisterAction().
|
pure virtual |
returns the type of CuTangoActionI implemented
Implemented in CuTaDb, CuTConfiguration, CuTReader, and CuTWriter.
|
pure virtual |
remove a CuDataListener from the list of listeners of data updates
l | a CuDataListener that will be removed from the list of listeners |
Implemented in CuTaDb, CuTConfiguration, CuTReader, and CuTWriter.
Referenced by CumbiaTango::unlinkListener().
|
pure virtual |
subclasses will implement the necessary code to set data on themselves or to the activities
data | a CuData compiled with the necessary fields accepted by the specific implementation |
The data can be set locally on the object implementing this interface or can be forwarded to the activity by means of Cumbia::postEvent carrying an argument derived from CuActivityEvent. See CuTReader::sendData for an example
Implemented in CuTaDb, CuTConfiguration, CuTReader, and CuTWriter.
|
pure virtual |
the method where activities are created and registered
This is the place where activities are created and registered to Cumbia through the method Cumbia::registerActivity.
Implemented in CuTaDb, CuTConfiguration, CuTReader, and CuTWriter.
References start().
Referenced by CumbiaTango::addAction(), and start().
|
pure virtual |
the method where activities are unregistered from Cumbia
This is the place where activities are unregistered from Cumbia by the Cumbia::unregisterActivity method
Implemented in CuTaDb, CuTConfiguration, CuTReader, and CuTWriter.
References stop().
Referenced by stop().