cumbia-qtcontrols 1.x
Qt widgets on top of the cumbia C++ library
|
abstract class defining an interface for cumbia-qtcontrols readers More...
#include <cucontrolsreader_abs.h>
Public Member Functions | |
CuControlsReaderA (Cumbia *c, CuDataListener *l) | |
virtual | ~CuControlsReaderA () |
virtual void | setSource (const QString &s)=0 |
connect the specified source to the control system engine and start reading. More... | |
virtual QString | source () const =0 |
returns the name of the source More... | |
virtual void | unsetSource ()=0 |
disconnect the source More... | |
virtual void | sendData (const CuData &d)=0 |
send data to the reader More... | |
virtual void | getData (CuData &d_ino) const =0 |
get data from the reader More... | |
Cumbia * | getCumbia () const |
returns a pointer to the Cumbia implementation that was passed to the class constructor More... | |
CuDataListener * | getDataListener () const |
return the CuDataListener that was specified in the constructor. More... | |
abstract class defining an interface for cumbia-qtcontrols readers
This abstract class defines an interface for readers. cumbia-qtcontrols readers do not know about the engine used to connect and read from the control system.
The method getCumbia returns a pointer to the Cumbia engine currently used by the reader. getDataListener returns a pointer to the CuDataListener that is listening for read updates. The CuDataListener and the Cumbia engine are passed to CuControlsReaderA in the constructor.
All the other are pure virtual methods that must be implemented in the subclass.
|
inline |
the class constructor initialises the reader.
c | a pointer to the Cumbia instance in use. |
l | a CuDataListener that will receive updates. |
|
inlinevirtual |
|
inline |
returns a pointer to the Cumbia implementation that was passed to the class constructor
|
pure virtual |
get data from the reader
d_ino | a bundle of key/value pairs defining the data to send to the reader and containing the results filled by the reader once the function returns |
Referenced by CuContext::getData().
|
inline |
return the CuDataListener that was specified in the constructor.
|
pure virtual |
send data to the reader
d | a bundle of key/value pairs defining the data to send to the reader |
Referenced by CuContext::sendData().
|
pure virtual |
connect the specified source to the control system engine and start reading.
s | the name of the source. The syntax depends on the engine. |
Subclasses can check the parameter to ensure that its form is valid.
Referenced by QuPlotCommon::addSource(), CuEngineHotSwitch::hot_switch(), QuCheckBox::setSource(), QuCircularGauge::setSource(), QuLabel::setSource(), QuLed::setSource(), QuLinearGauge::setSource(), QuTable::setSource(), QuWatcher::setSource(), and QuPlotCommon::setSources().
|
pure virtual |
returns the name of the source
If wildcards were used in setSource, source will return the complete source, with the substitutions.
Referenced by CuContext::disposeReader(), CuContext::findReader(), CuEngineHotSwitch::hot_switch(), QmlReaderBackend::source(), QuPlotCommon::sources(), QuSpectrumPlot::unsetSources(), and QuTrendPlot::unsetSources().
|
pure virtual |