#include <SensorStream.h>
Public Member Functions | |
virtual const AbstractReading * | current () const =0 |
virtual bool | end () const =0 |
virtual bool | isSeekable () const |
virtual const AbstractReading * | next () const =0 |
virtual bool | seek (const unsigned int _position=0, SensorStreamOffset _offset=BEGIN)=0 |
virtual unsigned int | tell () const =0 |
Representation of an abstract stream of sensor readings. The class represents an abstract sensor stream, providing the interface for obtaining sensor readings, as well as seeking within the stream and checking if the stream is over.
Definition at line 47 of file SensorStream.h.
virtual const AbstractReading* SensorStream::current | ( | ) | const [pure virtual] |
Get the current reading without advancing the stream (const reading)
Implemented in LogSensorStream.
virtual bool SensorStream::end | ( | ) | const [pure virtual] |
Check if the stream is finished
Implemented in LogSensorStream.
virtual bool SensorStream::isSeekable | ( | ) | const [inline, virtual] |
Check if the stream is seekable
Reimplemented in LogSensorStream.
Definition at line 62 of file SensorStream.h.
virtual const AbstractReading* SensorStream::next | ( | ) | const [pure virtual] |
Get the next reading and advance the stream (const reading).
Implemented in LogSensorStream.
virtual bool SensorStream::seek | ( | const unsigned int | _position = 0 , |
|
SensorStreamOffset | _offset = BEGIN | |||
) | [pure virtual] |
Seek the stream to a given sensor position. Return false if is not possible
Implemented in LogSensorStream.
virtual unsigned int SensorStream::tell | ( | ) | const [pure virtual] |
Get the current sensor position of the stream. Return 0 if it is not seekable
Implemented in LogSensorStream.