an activity to get properties from the Tango database
More...
#include <cugettdbpropactivity.h>
|
| CuGetTDbPropActivity (const std::vector< CuData > &in_data) |
| the class constructor, that accepts a list of CuData defining the properties the client wants to fetch from the Tango database More...
|
|
virtual | ~CuGetTDbPropActivity () |
| the class destructor More...
|
|
void | event (CuActivityEvent *e) |
| Receive events from the main thread to the CuActivity thread. More...
|
|
bool | matches (const CuData &token) const |
| returns true if the passed token is the same as this activity's token More...
|
|
int | getType () const |
|
int | repeat () const |
|
|
void | init () |
| implements the CuActivity::init method More...
|
|
void | execute () |
| get Tango database properties and post the result on the main thread. More...
|
|
void | onExit () |
| implements the onExit method from CuActivity More...
|
|
an activity to get properties from the Tango database
This activity implements CuIsolatedActivity to fetch Tango properties from the database. It's designed to be executed once (CuIsolatedActivity).
◆ Type
Enumerator |
---|
CuGetTDbPropA_Type | |
◆ CuGetTDbPropActivity()
CuGetTDbPropActivity::CuGetTDbPropActivity |
( |
const std::vector< CuData > & |
in_data | ) |
|
the class constructor, that accepts a list of CuData defining the properties the client wants to fetch from the Tango database
- Parameters
-
in_data | a std::list of CuData describing the names and the types of properties that have to be read from the database. |
- activity flags
- The activity sets to true the following two flags: CuActivity::CuAUnregisterAfterExec and CuActivity::CuADeleteOnExit to automatically get rid of the activity once its task is accomplished.
◆ ~CuGetTDbPropActivity()
CuGetTDbPropActivity::~CuGetTDbPropActivity |
( |
| ) |
|
|
virtual |
the class destructor
class destructor
◆ event()
void CuGetTDbPropActivity::event |
( |
CuActivityEvent * |
e | ) |
|
Receive events from the main thread to the CuActivity thread.
- Parameters
-
e | the event. Do not delete e after use. Cumbia will delete it after this method invocation. |
- See also
- CuActivity::event
- Note
- the body of this function is void
◆ execute()
void CuGetTDbPropActivity::execute |
( |
| ) |
|
|
protected |
◆ getType()
int CuGetTDbPropActivity::getType |
( |
| ) |
const |
◆ init()
void CuGetTDbPropActivity::init |
( |
| ) |
|
|
protected |
implements the CuActivity::init method
- Note
- The body of this function is empty.
Database property access is set up and executed within the CuGetTDbPropActivity::execute method.
◆ matches()
bool CuGetTDbPropActivity::matches |
( |
const CuData & |
token | ) |
const |
returns true if the passed token is the same as this activity's token
- Parameters
-
token | a CuData containg key/value pairs of another activity's token |
- Returns
- true if the input token is exactly the same as this activity's token
◆ onExit()
void CuGetTDbPropActivity::onExit |
( |
| ) |
|
|
protected |
◆ repeat()
int CuGetTDbPropActivity::repeat |
( |
| ) |
const |
The documentation for this class was generated from the following files: