ICF 3.1.1.10
Technical documentation of ICF Libraries
IDiscreteDataSequence.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_IDiscreteDataSequence_included
7#define imeas_IDiscreteDataSequence_included
8
9
10// ICF includes
11#include <istd/COptMemory.h>
12#include <imeas/IDataSequence.h>
13
14
15namespace imeas
16{
17
18
24{
25public:
38 int samplesCount,
39 istd::COptMemory&& data,
40 int sampleDiff,
41 int channelDiff,
42 int sampleDepth,
43 int channelsCount = 1,
44 std::unique_ptr<const IDataSequenceInfo>&& infoPtr = nullptr) = 0;
45
49 virtual int GetSampleDepth() const = 0;
50
55 virtual quint32 GetDiscreteSample(int position, int channel = 0) const = 0;
56
64 virtual bool SetDiscreteSample(int position, int channel, quint32 sample) = 0;
65};
66
67
68} // namespace imeas
69
70
71#endif // !imeas_IDiscreteDataSequence_included
72
73
General definition of sequence contains samples in regular time grid.
General definition of sequence contains discrete sample values in regular time grid.
virtual bool CreateDiscreteSequence(int samplesCount, istd::COptMemory &&data, int sampleDiff, int channelDiff, int sampleDepth, int channelsCount=1, std::unique_ptr< const IDataSequenceInfo > &&infoPtr=nullptr)=0
Create container for sample sequence using external samples buffer.
virtual quint32 GetDiscreteSample(int position, int channel=0) const =0
Get discrete sample at specified position.
virtual bool SetDiscreteSample(int position, int channel, quint32 sample)=0
Set discrete sample at specified position.
virtual int GetSampleDepth() const =0
Get number of bits used to represent single sample.
Memory block with optional deleting function used during destruction.
Definition COptMemory.h:21
This namespace contains classes for measurement system implementations.

© Witold Gantzke and Kirill Lepskiy