IDataSequence.h
Go to the documentation of this file.
1 #ifndef imeas_IDataSequence_included
2 #define imeas_IDataSequence_included
3 
4 
5 // ACF includes
6 #include "istd/TTransPtr.h"
7 #include "iser/ISerializable.h"
8 
10 
11 
12 namespace imeas
13 {
14 
15 
20 class IDataSequence: virtual public iser::ISerializable
21 {
22 public:
29  virtual bool CreateSequence(int samplesCount, int channelsCount = 1) = 0;
30 
37  virtual bool CreateSequenceWithInfo(
39  int samplesCount = -1,
40  int channelsCount = -1) = 0;
41 
45  virtual const IDataSequenceInfo* GetSequenceInfo() const = 0;
46 
50  virtual bool IsEmpty() const = 0;
51 
56  virtual void ResetSequence() = 0;
57 
61  virtual int GetSamplesCount() const = 0;
62 
66  virtual int GetChannelsCount() const = 0;
67 
71  virtual double GetSample(int index, int channel = 0) const = 0;
72 
76  virtual void SetSample(int index, int channel, double value) = 0;
77 };
78 
79 
80 } // namespace imeas
81 
82 
83 #endif // !imeas_IDataSequence_included
84 
85 
virtual int GetChannelsCount() const =0
Get number of channels.
virtual bool CreateSequence(int samplesCount, int channelsCount=1)=0
Create container for sample sequence with specified number of samples, channels and sample depth...
virtual int GetSamplesCount() const =0
Get size of this raster sequence.
virtual const IDataSequenceInfo * GetSequenceInfo() const =0
Get additional information about this sequence.
virtual void ResetSequence()=0
Reset this sequence.
virtual double GetSample(int index, int channel=0) const =0
Get sample value at specified index.
virtual void SetSample(int index, int channel, double value)=0
Set sample value at specified index.
Stores additional data sequence data used to interpret samples value correctly.
virtual bool IsEmpty() const =0
Return true if this sequence has no sample.
General definition of sequence contains samples in regular time grid.
Definition: IDataSequence.h:20
virtual bool CreateSequenceWithInfo(const istd::TTransPtr< const IDataSequenceInfo > &infoPtr, int samplesCount=-1, int channelsCount=-1)=0
Create sequence and set the info object.

© 2007-2011 Witold Gantzke and Kirill Lepskiy