|
ddt 1.2.1
|
#include <dataAcquisition.hpp>
Protected Attributes | |
| ddt::DdtLogger * | logger |
| DataAcquisition () | |
| virtual | ~DataAcquisition () |
| void | set_logger (ddt::DdtLogger *const in_logger) |
| void | AttachDataStream (const std::string data_stream_id) |
| void | DetachDataStream (const std::string data_stream_id) |
| void | ProcessNewData () |
| SignalT * | DataAvailableSignal () |
| ddt::DataSample * | get_DataSample () |
| ddt::DdtStatistics * | get_DataStatistics () |
| bool | get_AttachedToStream () const |
| void | set_RetrieveStatsFlag (bool value) |
Class to wrap the usage of data stream acquisition functions.
This class offers functions to attach to and detach from a data stream. Attaching to the data stream is realized by a Data Subscriber that connects to a Data Broker. In case of new data available from the subscriber, a corresponding signal is sent out.
| DataAcquisition::DataAcquisition | ( | ) |
Constructor
|
virtualdefault |
Destructor
| void DataAcquisition::AttachDataStream | ( | const std::string | data_stream_id | ) |
Attach to a data stream
| data_stream_id | The ID of the data stream (could be the URI) |
| SignalT * DataAcquisition::DataAvailableSignal | ( | ) |
Access to the data available signal
| void DataAcquisition::DetachDataStream | ( | const std::string | data_stream_id | ) |
Detach from a data stream
| data_stream_id | The ID of the stream to be disconnected |
| bool DataAcquisition::get_AttachedToStream | ( | ) | const |
Get the attached to stream flag
| ddt::DataSample * DataAcquisition::get_DataSample | ( | ) |
Get the currently available data sample
| ddt::DdtStatistics * DataAcquisition::get_DataStatistics | ( | ) |
Get statistics from the subscriber
| void DataAcquisition::ProcessNewData | ( | ) |
Event handler for new data on data stream
| void DataAcquisition::set_logger | ( | ddt::DdtLogger *const | in_logger | ) |
Set logger
| in_logger | A DDT logger object (no transfer of ownership). |
| void DataAcquisition::set_RetrieveStatsFlag | ( | bool | value | ) |
Enable or disable subscriber statistics extraction
|
protected |
The logger object