qumbia-tango-controls 1.x
Library on top of cumbia-qtcontrols and cumbia-tango
|
this factory creates Tango readers. Options can be set. More...
#include <cutcontrolsreader.h>
Public Member Functions | |
CuTReaderFactory () | |
virtual | ~CuTReaderFactory () |
the class destructor More... | |
CuControlsReaderA * | create (Cumbia *c, CuDataListener *l) const |
creates and returns a new CuTControlsReader, configured with the given Cumbia and CuDataListener. More... | |
void | setOptions (const CuData &o) |
CuData | getOptions () const |
returns the options set with setOptions, or an empty CuData. More... | |
CuControlsReaderFactoryI * | clone () const |
clones the reader factory, allocating a new one with the same options More... | |
this factory creates Tango readers. Options can be set.
Given a pointer to a Cumbia object and a CuDataListener, the create method instantiates and returns a CuTControlsReader, that implements CuControlsReaderA interface. If setOptions is called before create, the options are set on the CuTControlsReader.
CuTReaderFactory::CuTReaderFactory | ( | ) |
the class constructor
Referenced by clone().
|
virtual |
the class destructor
CuControlsReaderFactoryI * CuTReaderFactory::clone | ( | ) | const |
clones the reader factory, allocating a new one with the same options
References CuTReaderFactory().
CuControlsReaderA * CuTReaderFactory::create | ( | Cumbia * | c, |
CuDataListener * | l | ||
) | const |
creates and returns a new CuTControlsReader, configured with the given Cumbia and CuDataListener.
Call setOptions before create to configure the reader.
c | a pointer to the Cumbia object |
l | a pointer to an object implementing the CuDataListener interface |
References CuTControlsReader::setOptions().
CuData CuTReaderFactory::getOptions | ( | ) | const |
returns the options set with setOptions, or an empty CuData.
void CuTReaderFactory::setOptions | ( | const CuData & | o | ) |
call this before create to configure the reader
o | a CuData compiled with the following options:
|