ICF 3.1.1.10
Technical documentation of ICF Libraries
IDataSequence.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef imeas_IDataSequence_included
7#define imeas_IDataSequence_included
8
9
10// ICF includes
11#include <iser/ISerializable.h>
13
14
15namespace imeas
16{
17
18
24{
25public:
33 virtual bool CreateSequence(int samplesCount, int channelsCount = 1, std::unique_ptr<const IDataSequenceInfo>&& infoPtr = nullptr) = 0;
34
38 virtual const IDataSequenceInfo* GetSequenceInfo() const = 0;
39
43 virtual bool IsEmpty() const = 0;
44
49 virtual void ResetSequence() = 0;
50
54 virtual int GetSamplesCount() const = 0;
55
59 virtual int GetChannelsCount() const = 0;
60
64 virtual double GetSample(int index, int channel = 0) const = 0;
65
69 virtual void SetSample(int index, int channel, double value) = 0;
70};
71
72
73} // namespace imeas
74
75
76#endif // !imeas_IDataSequence_included
77
78
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