![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
Stores additional data sequence data used to interpret samples value correctly. More...
#include <CSamplesInfo.h>
Public Member Functions | |
| CSamplesInfo (const istd::CRange &logicalSamplesRange=istd::CRange::GetInvalid(), const QDateTime &samplingStartTime=QDateTime()) | |
| const istd::CRange & | GetLogicalSamplesRange () const |
| Get logical position range (time axis) of this data sequence. | |
| void | SetLogicalSamplesRange (const istd::CRange &range) |
| Set logical position range (time axis) of this data sequence. | |
| QDateTime | GetSamplingStartTime () const |
| Get the absolute start time of the sampling. | |
| void | SetSamplingStartTime (const QDateTime &samplingStartTime) |
| Set absolute time of sample acquisition. | |
| virtual int | GetSequenceInfoFlags () const |
| Get flags for this data sequence. | |
| virtual int | GetDefaultSamplesCount () const |
| Get default number of samples. | |
| virtual int | GetDefaultChannelsCount () const |
| Get default number of channels. | |
| virtual int | GetWeightMode () const |
| Get weight mode for this sequence. | |
| virtual const iprm::IOptionsList & | GetValueListInfo () const |
| Get general information about the "content" of the numeric value. | |
| virtual const imath::IUnitInfo * | GetNumericValueUnitInfo (int index) const |
| Get range of possible numeric values for specified list index. | |
| virtual bool | Serialize (iser::IArchive &archive) |
| Load or store state of this object as a archive stream. | |
Public Member Functions inherited from imeas::IDataSequenceInfo | |
Public Member Functions inherited from imeas::INumericConstraints | |
Public Member Functions inherited from istd::IChangeable | |
| virtual int | GetSupportedOperations () const |
| Get set of flags for supported operations. | |
| virtual bool | CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) |
| Copy this object from another one. | |
| virtual bool | IsEqual (const IChangeable &object) const |
| Compare this object with another object. | |
| virtual std::unique_ptr< IChangeable > | CloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const |
| Make a copy of this object. | |
| virtual bool | ResetData (CompatibilityMode mode=CM_WITHOUT_REFS) |
| Reset data to its default state. | |
| virtual QMutex * | GetChangesLock () const |
| Get mutex beeing locked during changes, if available. | |
| virtual void | BeginChanges (const ChangeSet &changeSet) |
| Starts the change transaction. | |
| virtual void | EndChanges (const ChangeSet &changeSet) |
| Ends the change transaction. | |
| virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
| Starts group of changes. | |
| virtual void | EndChangeGroup (const ChangeSet &changeSet) |
| Ends group of changes. | |
Public Member Functions inherited from iser::ISerializable | |
| virtual quint32 | GetMinimalVersion (int versionId) const |
| Get minimal needed version to correct storing of this data. | |
Protected Member Functions | |
| virtual int | GetOptionsFlags () const |
| Get constraints flags. | |
| virtual int | GetOptionsCount () const |
| Get number of managed options. | |
| virtual QString | GetOptionName (int index) const |
| Get name of specified option. | |
| virtual QString | GetOptionDescription (int index) const |
Get human readable description for a option with the index index. | |
| virtual QByteArray | GetOptionId (int index) const |
| Get option ID. | |
| virtual bool | IsOptionEnabled (int index) const |
Return true if the option is enabled and can be selected. | |
Protected Member Functions inherited from istd::IChangeable | |
| virtual void | OnBeginChanges () |
| Callback function for begin change event. | |
| virtual void | OnEndChanges (const ChangeSet &changeSet) |
| Callback function for end change event. | |
Protected Member Functions inherited from iprm::IOptionsList | |
Additional Inherited Members | |
Public Types inherited from imeas::IDataSequenceInfo | |
| enum | SequenceInfoFlags { SIF_SAMPLES_COUNT_FIXED = 1 << 1 , SIF_CHANNELS_COUNT_FIXED = 1 << 2 } |
| enum | WeightMode { WM_NONE , WM_LAST , WM_INTERLEAVED , WM_UNKNOWN } |
| Describe mode of weight information. More... | |
Public Types inherited from imeas::INumericConstraints | |
| typedef QByteArray | ValueTypeId |
Public Types inherited from istd::IChangeable | |
| enum | ChangeFlags { CF_ICF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING , CF_DELEGATED , CF_NO_UNDO } |
| Data model change notification flags. More... | |
| enum | SupportedOperations { SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 , SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4 , SO_CHANGE_LOCK = 1 << 5 } |
| Flags for supported operations. More... | |
| enum | CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT } |
| Control how relationship betweeen objects are interpreted. More... | |
Static Public Member Functions inherited from istd::IChangeable | |
| static const ChangeSet & | GetNoChanges () |
| Get empty set of changes. | |
| static const ChangeSet & | GetAnyChange () |
| Get anonymous change set. | |
| static const ChangeSet & | GetAllChanges () |
| Get anonymous change set. | |
| static const ChangeSet & | GetDelegatedChanges () |
| Get delegated change set. | |
Protected Types inherited from iprm::IOptionsList | |
| enum | ChangeFlags { CF_OPTIONS_CHANGED = 0x8263d86 , CF_OPTION_RENAMED } |
| Flags for changes related to this interface. More... | |
| enum | OptionsFlags { SCF_NONE = 0 , SCF_SUPPORT_UNIQUE_ID = 256 , SFC_DISABLE_ALLOWED = 32 } |
| Flags for control constraints behavior. More... | |
Static Protected Member Functions inherited from iprm::IOptionsList | |
| static int | FindIndexById (const QByteArray &id, const iprm::IOptionsList &list) |
| Helper function to find the option index by ID. | |
Stores additional data sequence data used to interpret samples value correctly.
Definition at line 24 of file CSamplesInfo.h.
| imeas::CSamplesInfo::CSamplesInfo | ( | const istd::CRange & | logicalSamplesRange = istd::CRange::GetInvalid(), |
| const QDateTime & | samplingStartTime = QDateTime() ) |
|
virtual |
Get default number of channels.
If negative, the default number of channels is undefined.
Implements imeas::IDataSequenceInfo.
|
virtual |
Get default number of samples.
If negative, the default number of samples is undefined.
Implements imeas::IDataSequenceInfo.
| const istd::CRange & imeas::CSamplesInfo::GetLogicalSamplesRange | ( | ) | const |
Get logical position range (time axis) of this data sequence.
For example, if you sample sound from second 1 to 5 it will be represented as range [1.0, 5.0]. If this range is invalid, no logical range is provided.
|
virtual |
Get range of possible numeric values for specified list index.
| index | index of numeric value. |
Implements imeas::INumericConstraints.
|
protectedvirtual |
Get human readable description for a option with the index index.
Implements iprm::IOptionsList.
|
protectedvirtual |
Get option ID.
The option ID must be unique, if flag SCF_SUPPORT_UNIQUE_ID is set.
Implements iprm::IOptionsList.
|
protectedvirtual |
Get name of specified option.
Implements iprm::IOptionsList.
|
protectedvirtual |
Get number of managed options.
Implements iprm::IOptionsList.
|
protectedvirtual |
Get constraints flags.
The flags describes how the constraints object mantainance
Implements iprm::IOptionsList.
| QDateTime imeas::CSamplesInfo::GetSamplingStartTime | ( | ) | const |
Get the absolute start time of the sampling.
If the time object is invalid the
|
virtual |
Get flags for this data sequence.
Implements imeas::IDataSequenceInfo.
|
virtual |
Get general information about the "content" of the numeric value.
Implements imeas::INumericConstraints.
|
virtual |
|
protectedvirtual |
Return true if the option is enabled and can be selected.
Implements iprm::IOptionsList.
|
virtual |
Load or store state of this object as a archive stream.
Type of operation is depending on archive type.
Implements iser::ISerializable.
| void imeas::CSamplesInfo::SetLogicalSamplesRange | ( | const istd::CRange & | range | ) |
Set logical position range (time axis) of this data sequence.
| void imeas::CSamplesInfo::SetSamplingStartTime | ( | const QDateTime & | samplingStartTime | ) |
Set absolute time of sample acquisition.
© Witold Gantzke and Kirill Lepskiy