ICF 3.1.1.10
Technical documentation of ICF Libraries
CGeneralDataSequenceInfo.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#pragma once
7
8
9// ICF includes
12
13
14namespace imeas
15{
16
17
23 virtual public IDataSequenceInfo
24{
25public:
27
29 int defaultChannelsCount,
30 int defaultSamplesCount,
32 int sequenceFlags = 0);
33
34 void SetSequenceInfoFlags(int flags);
35 void SetDefaultSamplesCount(int samplesCount);
36 void SetDefaultChannelsCount(int channelsCount);
38
39 // reimplemented (CGeneralNumericConstraints)
41 const QString& name,
42 const QString& description,
43 const QByteArray& valueId,
44 const imath::CGeneralUnitInfo& unitInfo,
45 int index = -1) override;
46
47 // reimplemented (imeas::IDataSequenceInfo)
48 int GetSequenceInfoFlags() const override;
49 int GetDefaultSamplesCount() const override;
50 int GetDefaultChannelsCount() const override;
51 int GetWeightMode() const override;
52
53 // reimplemented (iser::ISerializable)
54 bool Serialize(iser::IArchive& archive) override;
55
56private:
57 WeightMode m_weightMode;
58 int m_sequenceInfoFlags;
59 int m_defaultSamplesCount;
60 int m_defaultChannelsCount;
61};
62
63
64} // namespace imeas
65
66
General implementation of the IUnitInfo interface.
Simple implementation of imeas::IDataSequenceInfo interface.
imeas::CGeneralNumericConstraints BaseClass
void SetDefaultSamplesCount(int samplesCount)
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
void SetDefaultChannelsCount(int channelsCount)
bool InsertValueInfo(const QString &name, const QString &description, const QByteArray &valueId, const imath::CGeneralUnitInfo &unitInfo, int index=-1) override
Add new value information.
int GetWeightMode() const override
Get weight mode for this sequence.
int GetDefaultSamplesCount() const override
Get default number of samples.
CGeneralDataSequenceInfo(int defaultChannelsCount, int defaultSamplesCount, IDataSequenceInfo::WeightMode mode=WM_NONE, int sequenceFlags=0)
int GetSequenceInfoFlags() const override
Get flags for this data sequence.
void SetWeightMode(WeightMode mode)
void SetSequenceInfoFlags(int flags)
int GetDefaultChannelsCount() const override
Get default number of channels.
Simple implementation of imeas::INumericConstraints interface.
Stores additional data sequence data used to interpret samples value correctly.
WeightMode
Describe mode of weight information.
@ WM_NONE
There is no weights.
Represent input/output persistence archive.
Definition IArchive.h:34
This namespace contains classes for measurement system implementations.

© Witold Gantzke and Kirill Lepskiy