Go to the documentation of this file.
6#ifndef imeas_IDataSequence_included
7#define imeas_IDataSequence_included
33 virtual bool CreateSequence(
int samplesCount,
int channelsCount = 1, std::unique_ptr<const IDataSequenceInfo>&& infoPtr =
nullptr) = 0;
64 virtual double GetSample(
int index,
int channel = 0)
const = 0;
69 virtual void SetSample(
int index,
int channel,
double value) = 0;
General definition of sequence contains samples in regular time grid.
virtual void SetSample(int index, int channel, double value)=0
Set sample value at specified index.
virtual double GetSample(int index, int channel=0) const =0
Get sample value at specified index.
virtual const IDataSequenceInfo * GetSequenceInfo() const =0
Get additional information about this sequence.
virtual void ResetSequence()=0
Reset this sequence.
virtual bool IsEmpty() const =0
Return true if this sequence has no sample.
virtual int GetSamplesCount() const =0
Get size of this raster sequence.
virtual int GetChannelsCount() const =0
Get number of channels.
virtual bool CreateSequence(int samplesCount, int channelsCount=1, std::unique_ptr< const IDataSequenceInfo > &&infoPtr=nullptr)=0
Create container for sample sequence with specified number of samples, channels and sample depth.
Stores additional data sequence data used to interpret samples value correctly.
Common class for all classes which objects can be archived or restored from archive.
This namespace contains classes for measurement system implementations.
© Witold Gantzke and Kirill Lepskiy