#include <yocto_api.h>
Public Member Functions | |
double | dataSamplesInterval (void) |
double | get_dataSamplesInterval (void) |
int | get_startTime (void) |
int | loadStream (void) |
int | startTime (void) |
YOldDataStream (YDataLogger *parent, unsigned run, unsigned stamp, unsigned utc, unsigned itv) | |
Public Member Functions inherited from YDataStream | |
virtual double | _decodeAvg (int dw, int count) |
virtual double | _decodeVal (int w) |
virtual string | _get_url (void) |
virtual int | _initFromDataSet (YDataSet *dataset, vector< int > encoded) |
virtual int | _parseStream (string sdata) |
virtual double | get_averageValue (void) |
virtual int | get_columnCount (void) |
virtual vector< string > | get_columnNames (void) |
virtual double | get_data (int row, int col) |
virtual vector< vector< double > > | get_dataRows (void) |
virtual int | get_dataSamplesIntervalMs (void) |
virtual int | get_duration (void) |
virtual double | get_maxValue (void) |
virtual double | get_minValue (void) |
virtual int | get_rowCount (void) |
virtual int | get_runIndex (void) |
virtual s64 | get_startTimeUTC (void) |
virtual bool | isClosed (void) |
YDataStream (YFunction *parent) | |
YDataStream (YFunction *parent, YDataSet &dataset, const vector< int > &encoded) | |
virtual | ~YDataStream () |
Protected Attributes | |
YDataLogger * | _dataLogger |
unsigned | _interval |
unsigned | _timeStamp |
Protected Attributes inherited from YDataStream | |
double | _avgVal |
yCalibrationHandler | _calhdl |
vector< int > | _calpar |
vector< double > | _calraw |
vector< double > | _calref |
int | _caltyp |
vector< string > | _columnNames |
double | _decexp |
int | _decimals |
int | _duration |
string | _functionId |
bool | _isAvg |
bool | _isClosed |
bool | _isScal |
bool | _isScal32 |
double | _maxVal |
double | _minVal |
int | _nCols |
int | _nRows |
double | _offset |
YFunction * | _parent |
int | _runNo |
int | _samplesPerHour |
double | _scale |
s64 | _utcStamp |
vector< vector< double > > | _values |
Additional Inherited Members | |
Static Public Attributes inherited from YDataStream | |
static const double | DATA_INVALID = Y_DATA_INVALID |
static const int | DURATION_INVALID = -1 |
YOldDataStream Class: Sequence of measured data, returned by the data logger
A data stream is a small collection of consecutive measures for a set of sensors. A few properties are available directly from the object itself (they are preloaded at instantiation time), while most other properties and the actual data are loaded on demand when accessed for the first time.
This is the old version of the YDataStream class, used for backward-compatibility with devices with firmware < 13000
Definition at line 3577 of file yocto_api.h.
YOldDataStream::YOldDataStream | ( | YDataLogger * | parent, |
unsigned | run, | ||
unsigned | stamp, | ||
unsigned | utc, | ||
unsigned | itv | ||
) |
Definition at line 8316 of file yocto_api.cpp.
|
inline |
Definition at line 3620 of file yocto_api.h.
|
virtual |
Returns the number of seconds elapsed between two consecutive rows of this data stream. By default, the data logger records one row per second, but there might be alternative streams at lower resolution created by summarizing the original stream for archiving purposes.
This method does not cause any access to the device, as the value is preloaded in the object at instantiation time.
Reimplemented from YDataStream.
Definition at line 8539 of file yocto_api.cpp.
|
virtual |
Returns the relative start time of the data stream, measured in seconds. For recent firmwares, the value is relative to the present time, which means the value is always negative. If the device uses a firmware older than version 13000, value is relative to the start of the time the device was powered on, and is always positive. If you need an absolute UTC timestamp, use get_startTimeUTC().
Returns the start time of the data stream, relative to the beginning of the run. If you need an absolute time, use get_startTimeUTC().
This method does not cause any access to the device, as the value is preloaded in the object at instantiation time.
Reimplemented from YDataStream.
Definition at line 8523 of file yocto_api.cpp.
|
virtual |
Reimplemented from YDataStream.
Definition at line 8333 of file yocto_api.cpp.
|
inline |
Definition at line 3605 of file yocto_api.h.
|
protected |
Definition at line 3580 of file yocto_api.h.
|
protected |
Definition at line 3582 of file yocto_api.h.
|
protected |
Definition at line 3581 of file yocto_api.h.