Public Member Functions | List of all members
imeas::IDataSequence Class Referenceabstract

General definition of sequence contains samples in regular time grid. More...

#include <IDataSequence.h>

Inheritance diagram for imeas::IDataSequence:
iser::ISerializable istd::IChangeable istd::IPolymorphic imeas::CGeneralDataSequence imeas::IDiscreteDataSequence imeas::TDiscreteDataSequence< Element >

Public Member Functions

virtual bool CreateSequence (int samplesCount, int channelsCount=1)=0
 Create container for sample sequence with specified number of samples, channels and sample depth. More...
 
virtual bool CreateSequenceWithInfo (const istd::TTransPtr< const IDataSequenceInfo > &infoPtr, int samplesCount=-1, int channelsCount=-1)=0
 Create sequence and set the info object. More...
 
virtual const IDataSequenceInfoGetSequenceInfo () const =0
 Get additional information about this sequence. More...
 
virtual bool IsEmpty () const =0
 Return true if this sequence has no sample. More...
 
virtual void ResetSequence ()=0
 Reset this sequence. More...
 
virtual int GetSamplesCount () const =0
 Get size of this raster sequence. More...
 
virtual int GetChannelsCount () const =0
 Get number of channels. More...
 
virtual double GetSample (int index, int channel=0) const =0
 Get sample value at specified index. More...
 
virtual void SetSample (int index, int channel, double value)=0
 Set sample value at specified index. More...
 

Detailed Description

General definition of sequence contains samples in regular time grid.

All samples has the same number of channels components.

Definition at line 20 of file IDataSequence.h.

Member Function Documentation

virtual bool imeas::IDataSequence::CreateSequence ( int  samplesCount,
int  channelsCount = 1 
)
pure virtual

Create container for sample sequence with specified number of samples, channels and sample depth.

Parameters
samplesCountnumber of samples.
channelsCountnumber of channels.
Returns
true if sample sequence was created correctly.

Implemented in imeas::TDiscreteDataSequence< Element >, and imeas::CGeneralDataSequence.

virtual bool imeas::IDataSequence::CreateSequenceWithInfo ( const istd::TTransPtr< const IDataSequenceInfo > &  infoPtr,
int  samplesCount = -1,
int  channelsCount = -1 
)
pure virtual

Create sequence and set the info object.

Parameters
infoPtrsequence info object.
samplesCountnumber of samples. If it is negative, default value will be taken.
channelsCountnumber of channels. If it is negative, default value will be taken.

Implemented in imeas::TDiscreteDataSequence< Element >, and imeas::CGeneralDataSequence.

virtual int imeas::IDataSequence::GetChannelsCount ( ) const
pure virtual
virtual double imeas::IDataSequence::GetSample ( int  index,
int  channel = 0 
) const
pure virtual
virtual int imeas::IDataSequence::GetSamplesCount ( ) const
pure virtual
virtual const IDataSequenceInfo* imeas::IDataSequence::GetSequenceInfo ( ) const
pure virtual

Get additional information about this sequence.

Implemented in imeas::TDiscreteDataSequence< Element >, and imeas::CGeneralDataSequence.

virtual bool imeas::IDataSequence::IsEmpty ( ) const
pure virtual

Return true if this sequence has no sample.

Implemented in imeas::TDiscreteDataSequence< Element >, and imeas::CGeneralDataSequence.

virtual void imeas::IDataSequence::ResetSequence ( )
pure virtual

Reset this sequence.

After this operation sequence is set to initial state.

Implemented in imeas::TDiscreteDataSequence< Element >, and imeas::CGeneralDataSequence.

virtual void imeas::IDataSequence::SetSample ( int  index,
int  channel,
double  value 
)
pure virtual

The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy