qumbia-tango-controls 1.x
Library on top of cumbia-qtcontrols and cumbia-tango
|
implements CuControlsWriterA abstract class and provides an interface to connect a Tango writer to a target. More...
#include <cutcontrolswriter.h>
Public Member Functions | |
CuTControlsWriter (Cumbia *cumbia_tango, CuDataListener *tl) | |
class constructor that's configured with CumbiaTango and CuDataListener instances More... | |
virtual | ~CuTControlsWriter () |
the class destructor. More... | |
QString | target () const |
returns the configured target, or an empty string More... | |
void | clearTarget () |
remove the configured target, if any. More... | |
void | setTarget (const QString &s) |
connect the writer to the Tango control system target More... | |
virtual void | execute () |
execute the target configured with setTarget. The value to write is taken from the return value of getArgs. More... | |
void | sendData (const CuData &d) |
This is not implemented yet. More... | |
void | getData (CuData &d_ino) const |
This is not implemented yet. More... | |
void | setOptions (const CuData &o) |
set the options on the writer (before setTarget) More... | |
implements CuControlsWriterA abstract class and provides an interface to connect a Tango writer to a target.
Built with references to CumbiaTango and CuDataListener, CuTControlsWriter implements CuControlsWriterA and connects a writer to the Tango control system through the setTarget method. setOptions can discretionary be called before setTarget.
Parameters and configuration can be sent and queried with sendData and getData respectively.
clearTarget can finally be called in order disconnect a writer, and if CuTControlsWriter is deleted, clearTarget is called automatically.
CuTControlsWriter::CuTControlsWriter | ( | Cumbia * | cumbia_tango, |
CuDataListener * | tl | ||
) |
class constructor that's configured with CumbiaTango and CuDataListener instances
cumbia_tango | a pointer to a CumbiaTango instance |
CuDataListener | a pointer to an object implementing the CuDataListener interface |
|
virtual |
the class destructor.
The class destructors sets the invalidate flag on the listener, so that it won't be used later, and calls clearTarget
References clearTarget().
void CuTControlsWriter::clearTarget | ( | ) |
remove the configured target, if any.
Referenced by ~CuTControlsWriter().
|
virtual |
execute the target configured with setTarget. The value to write is taken from the return value of getArgs.
A CuTangoWriterFactory is used to start an activity managed by CumbiaTango. The activity deals with writing the value on an attribute or imparting a command once.
void CuTControlsWriter::getData | ( | CuData & | d_ino | ) | const |
This is not implemented yet.
void CuTControlsWriter::sendData | ( | const CuData & | d | ) |
This is not implemented yet.
void CuTControlsWriter::setOptions | ( | const CuData & | o | ) |
set the options on the writer (before setTarget)
This is usually called by CuTWriterFactory::create immediately after CuTControlsWriter is instantiated.
Referenced by CuTWriterFactory::create().
void CuTControlsWriter::setTarget | ( | const QString & | s | ) |
connect the writer to the Tango control system target
s | the name of the writer target (Tango device attribute or command) |
References CuTControlsUtils::replaceWildcards().
QString CuTControlsWriter::target | ( | ) | const |
returns the configured target, or an empty string