IDiscreteDataSequence.h
Go to the documentation of this file.
1 #ifndef imeas_IDiscreteDataSequence_included
2 #define imeas_IDiscreteDataSequence_included
3 
4 
5 #include "imeas/IDataSequence.h"
6 
7 
8 namespace imeas
9 {
10 
11 
16 class IDiscreteDataSequence: virtual public IDataSequence
17 {
18 public:
30  virtual bool CreateDiscreteSequence(
31  int samplesCount,
32  void* dataPtr,
33  bool releaseFlag,
34  int sampleDiff,
35  int channelDiff,
36  int sampleDepth,
37  int channelsCount = 1) = 0;
50  virtual bool CreateDiscreteSequenceWithInfo(
52  int samplesCount,
53  void* dataPtr,
54  bool releaseFlag,
55  int sampleDiff,
56  int channelDiff,
57  int sampleDepth,
58  int channelsCount = 1) = 0;
62  virtual int GetSampleDepth() const = 0;
63 
68  virtual quint32 GetDiscreteSample(int position, int channel = 0) const = 0;
69 
77  virtual bool SetDiscreteSample(int position, int channel, quint32 sample) = 0;
78 };
79 
80 
81 } // namespace imeas
82 
83 
84 #endif // !imeas_IDiscreteDataSequence_included
85 
86 
virtual int GetSampleDepth() const =0
Get number of bits used to represent single sample.
virtual quint32 GetDiscreteSample(int position, int channel=0) const =0
Get discrete sample at specified position.
General definition of sequence contains discrete sample values in regular time grid.
virtual bool CreateDiscreteSequenceWithInfo(const istd::TTransPtr< const IDataSequenceInfo > &infoPtr, int samplesCount, void *dataPtr, bool releaseFlag, int sampleDiff, int channelDiff, int sampleDepth, int channelsCount=1)=0
Create container for sample sequence with additional sequence info using external samples buffer...
virtual bool CreateDiscreteSequence(int samplesCount, void *dataPtr, bool releaseFlag, int sampleDiff, int channelDiff, int sampleDepth, int channelsCount=1)=0
Create container for sample sequence using external samples buffer.
virtual bool SetDiscreteSample(int position, int channel, quint32 sample)=0
Set discrete sample at specified position.
General definition of sequence contains samples in regular time grid.
Definition: IDataSequence.h:20

© 2007-2011 Witold Gantzke and Kirill Lepskiy