CSamplesInfo.h
Go to the documentation of this file.
1 #ifndef imeas_CSamplesInfo_included
2 #define imeas_CSamplesInfo_included
3 
4 
5 // Qt includes
6 #include <QtCore/QDateTime>
7 
8 // ACF includes
10 
11 
12 namespace imeas
13 {
14 
15 
20  virtual public imeas::IDataSequenceInfo,
21  protected iprm::IOptionsList
22 {
23 public:
24  CSamplesInfo(const istd::CRange& logicalSamplesRange = istd::CRange::GetInvalid(), const QDateTime& samplingStartTime = QDateTime());
25 
31  const istd::CRange& GetLogicalSamplesRange() const;
36  void SetLogicalSamplesRange(const istd::CRange& range);
37 
42  QDateTime GetSamplingStartTime() const;
43 
47  void SetSamplingStartTime(const QDateTime& samplingStartTime);
48 
49  // reimplemented (imeas::IDataSequenceInfo)
50  virtual int GetSequenceInfoFlags() const;
51  virtual int GetDefaultSamplesCount() const;
52  virtual int GetDefaultChannelsCount() const;
53  virtual int GetWeightMode() const;
54 
55  // reimplemented (imeas::INumericConstraints)
56  virtual const iprm::IOptionsList& GetValueListInfo() const;
57  virtual const imath::IUnitInfo* GetNumericValueUnitInfo(int index) const;
58 
59  // reimplemented (iser::ISerializable)
60  virtual bool Serialize(iser::IArchive& archive);
61 
62 protected:
63  // reimplemented (iprm::IOptionsList)
64  virtual int GetOptionsFlags() const;
65  virtual int GetOptionsCount() const;
66  virtual QString GetOptionName(int index) const;
67  virtual QString GetOptionDescription(int index) const;
68  virtual QByteArray GetOptionId(int index) const;
69  virtual bool IsOptionEnabled(int index) const;
70 
71 private:
72  istd::CRange m_logicalSamplesRange;
73  QDateTime m_samplingStartTime;
74 };
75 
76 
77 } // namespace imeas
78 
79 
80 #endif // !imeas_CSamplesInfo_included
81 
82 
virtual QString GetOptionName(int index) const
virtual bool IsOptionEnabled(int index) const
static const TRange & GetInvalid()
virtual int GetWeightMode() const
Get weight mode for this sequence.
CSamplesInfo(const istd::CRange &logicalSamplesRange=istd::CRange::GetInvalid(), const QDateTime &samplingStartTime=QDateTime())
virtual const imath::IUnitInfo * GetNumericValueUnitInfo(int index) const
Get range of possible numeric values for specified list index.
void SetSamplingStartTime(const QDateTime &samplingStartTime)
Set absolute time of sample acquisition.
virtual int GetDefaultSamplesCount() const
Get default number of samples.
void SetLogicalSamplesRange(const istd::CRange &range)
Set logical position range (time axis) of this data sequence.
Stores additional data sequence data used to interpret samples value correctly.
Definition: CSamplesInfo.h:19
const istd::CRange & GetLogicalSamplesRange() const
Get logical position range (time axis) of this data sequence.
virtual bool Serialize(iser::IArchive &archive)
virtual int GetDefaultChannelsCount() const
Get default number of channels.
virtual QByteArray GetOptionId(int index) const
Stores additional data sequence data used to interpret samples value correctly.
virtual int GetOptionsFlags() const
QDateTime GetSamplingStartTime() const
Get the absolute start time of the sampling.
virtual const iprm::IOptionsList & GetValueListInfo() const
Get general information about the "content" of the numeric value.
virtual int GetSequenceInfoFlags() const
Get flags for this data sequence.
virtual QString GetOptionDescription(int index) const
virtual int GetOptionsCount() const

© 2007-2017 Witold Gantzke and Kirill Lepskiy