DUECA/DUSIME
|
This is a facilitator for reading stream data. More...
#include <StreamReader.hxx>
Public Member Functions | |
StreamReader (StreamChannelReadToken< T > &token, const TimeSpec &ts) | |
Constructor. | |
~StreamReader () | |
Destructor. | |
bool | ok () |
Check that the stream reading is OK. | |
Public Member Functions inherited from dueca::DataReader< T, MatchIntervalStart > | |
DataReader (ChannelReadToken &token, const DataTimeSpec &ts) | |
Constructor. | |
DataReader (ChannelReadToken &token, const TimeSpec &ts) | |
Constructor with TimeSpec. | |
DataReader (ChannelReadToken &token, TimeTickType ts=MAX_TIMETICK) | |
Constructor with time tick. | |
const T & | data () |
Access to the data. | |
const DataTimeSpec & | timeSpec () |
Return the time specification of the data. | |
const GlobalId & | origin () |
Return the origin. | |
~DataReader () | |
Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from dueca::DataReaderBase | |
DataReaderBase (ChannelReadToken &token, const DataTimeSpec &t_request) | |
Constructor. | |
Protected Attributes inherited from dueca::DataReaderBase | |
ChannelReadToken & | token |
Reference to the channel access token. | |
DataTimeSpec | t_request |
Time span or point requested. | |
DataTimeSpec | ts_data |
Time specification as realised. | |
GlobalId | data_origin |
Data origin. | |
bool | firstaccess |
First access flag. | |
This is a facilitator for reading stream data.
By creating a "StreamReader", the access token is used to gain access to the data in the channel. When at the end of scope the StreamReader is destroyed, the access is released again.
|
inline |
Constructor.
Gains access to the channel for which the token was made.
token | Read access token. |
ts | Time specification. |
|
inline |
Destructor.
Releases the access again with a token.
|
inline |
Check that the stream reading is OK.
Only applicable in code without exceptions.