CGeneralDataSequenceInfo.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 // ACF-Solutions includes
7 
8 
9 namespace imeas
10 {
11 
12 
18  virtual public IDataSequenceInfo
19 {
20 public:
22 
24  int defaultChannelsCount,
25  int defaultSamplesCount,
27  int sequenceFlags = 0);
28 
29  void SetSequenceInfoFlags(int flags);
30  void SetDefaultSamplesCount(int samplesCount);
31  void SetDefaultChannelsCount(int channelsCount);
32  void SetWeightMode(WeightMode mode);
33 
34  // reimplemented (CGeneralNumericConstraints)
35  virtual bool InsertValueInfo(
36  const QString& name,
37  const QString& description,
38  const QByteArray& valueId,
39  const imath::CGeneralUnitInfo& unitInfo,
40  int index = -1);
41 
42  // reimplemented (imeas::IDataSequenceInfo)
43  virtual int GetSequenceInfoFlags() const;
44  virtual int GetDefaultSamplesCount() const;
45  virtual int GetDefaultChannelsCount() const;
46  virtual int GetWeightMode() const;
47 
48  // reimplemented (iser::ISerializable)
49  virtual bool Serialize(iser::IArchive& archive);
50 
51 private:
52  WeightMode m_weightMode;
53  int m_sequenceInfoFlags;
54  int m_defaultSamplesCount;
55  int m_defaultChannelsCount;
56 };
57 
58 
59 } // namespace imeas
60 
61 
virtual int GetDefaultSamplesCount() const
Get default number of samples.
void SetWeightMode(WeightMode mode)
void SetDefaultSamplesCount(int samplesCount)
virtual int GetSequenceInfoFlags() const
Get flags for this data sequence.
virtual int GetDefaultChannelsCount() const
Get default number of channels.
virtual bool Serialize(iser::IArchive &archive)
virtual int GetWeightMode() const
Get weight mode for this sequence.
WeightMode
Describe mode of weight information.
Stores additional data sequence data used to interpret samples value correctly.
virtual bool InsertValueInfo(const QString &name, const QString &description, const QByteArray &valueId, const imath::CGeneralUnitInfo &unitInfo, int index=-1)
Add new value information.
void SetSequenceInfoFlags(int flags)
CGeneralDataSequenceInfo(int defaultChannelsCount, int defaultSamplesCount, IDataSequenceInfo::WeightMode mode=WM_NONE, int sequenceFlags=0)
void SetDefaultChannelsCount(int channelsCount)
imeas::CGeneralNumericConstraints BaseClass
Simple implementation of imeas::IDataSequenceInfo interface.
Simple implementation of imeas::INumericConstraints interface.

© 2007-2017 Witold Gantzke and Kirill Lepskiy