Public Member Functions | Protected Attributes | List of all members
YOldDataStream Class Reference

#include <yocto_api.h>

Inheritance diagram for YOldDataStream:
Inheritance graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

YOldDataStream::YOldDataStream ( YDataLogger parent,
unsigned  run,
unsigned  stamp,
unsigned  utc,
unsigned  itv 
)

Definition at line 8316 of file yocto_api.cpp.

Member Function Documentation

double YOldDataStream::dataSamplesInterval ( void  )
inline

Definition at line 3620 of file yocto_api.h.

double YOldDataStream::get_dataSamplesInterval ( void  )
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.

Returns
an unsigned number corresponding to a number of seconds.

Reimplemented from YDataStream.

Definition at line 8539 of file yocto_api.cpp.

int YOldDataStream::get_startTime ( void  )
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
an unsigned number corresponding to the number of seconds between the start of the run and the beginning of this data stream.

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.

Returns
an unsigned number corresponding to the number of seconds between the start of the run and the beginning of this data stream.

Reimplemented from YDataStream.

Definition at line 8523 of file yocto_api.cpp.

int YOldDataStream::loadStream ( void  )
virtual

Reimplemented from YDataStream.

Definition at line 8333 of file yocto_api.cpp.

int YOldDataStream::startTime ( void  )
inline

Definition at line 3605 of file yocto_api.h.

Member Data Documentation

YDataLogger* YOldDataStream::_dataLogger
protected

Definition at line 3580 of file yocto_api.h.

unsigned YOldDataStream::_interval
protected

Definition at line 3582 of file yocto_api.h.

unsigned YOldDataStream::_timeStamp
protected

Definition at line 3581 of file yocto_api.h.


The documentation for this class was generated from the following files:


yoctopuce_altimeter
Author(s): Anja Sheppard
autogenerated on Mon Jun 10 2019 15:49:13