![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <CWavSamplesSaverComp.h>
Public Types | |
typedef icomp::CComponentBase | BaseClass |
![]() | |
enum | ErrorType { ET_NO_WRITE_PERMISSIONS , ET_NO_READ_PERMISSIONS , ET_FILE_NOT_EXIST } |
Possible file I/O errors. More... | |
enum | MessageId { MI_BAD_OBJECT_TYPE = 0xabf0 , MI_CANNOT_LOAD , MI_CANNOT_SAVE , MI_BAD_EXTENSION , MI_FILE_NOT_EXIST , MI_UNSUPPORTED_VERSION } |
List of possible message IDs used in context of this interface. More... | |
![]() | |
enum | QueryFlags { QF_LOAD = 1 << 0 , QF_SAVE = 1 << 1 , QF_FILE = 1 << 2 , QF_DIRECTORY = 1 << 3 , QF_ANONYMOUS = 1 << 4 } |
Describe detailed options of query. More... | |
Public Member Functions | |
bool | IsOperationSupported (const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=nullptr, int flags=-1, bool beQuiet=true) const override |
Returns true if object dataObject can be loaded/saved. | |
iproc::CTaskState | LoadFromFile (istd::IChangeable &data, const QString &filePath=QString(), iproc::IProgressManager *progressManagerPtr=nullptr) const override |
This function loads data data from file filePath . | |
iproc::CTaskState | SaveToFile (const istd::IChangeable &data, const QString &filePath=QString(), iproc::IProgressManager *progressManagerPtr=nullptr) const override |
This function saves data data to file filePath . | |
bool | GetFileExtensions (QStringList &result, const istd::IChangeable *dataObjectPtr=nullptr, int flags=-1, bool doAppend=false) const override |
Get file extensions supported by this loader. | |
QString | GetTypeDescription (const QString *extensionPtr=nullptr) const override |
Get description of object type associated with single extension. | |
![]() | |
CComponentBase () | |
Create component and assign it to specific context. | |
CComponentBase (const CComponentBase &)=delete | |
CComponentBase & | operator= (const CComponentBase &)=delete |
virtual const ICompositeComponent * | GetParentComponent (bool ownerOnly=false) const |
Get parent of this component. | |
virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") |
Get access to specified component interface. | |
virtual const IComponentContext * | GetComponentContext () const |
Get access to component context describing all application-specified component information loaded from components registry. | |
virtual void | SetComponentContext (const IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner) |
Set component context of this component. | |
![]() | |
![]() | |
![]() |
Protected Types | |
enum | WavContaints { WC_BYTES_PER_SAMPLE = 2 , WC_BITS_PER_SAMPLE = WC_BYTES_PER_SAMPLE * 8 , WC_WAVE_FORMAT_PCM = 1 } |
Additional Inherited Members | |
![]() | |
bool | IsComponentActive () const |
Check if component is active. | |
virtual void | OnComponentCreated () |
virtual void | OnComponentDestroyed () |
virtual const IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
Get access to static info of this component. | |
![]() | |
static const IRealComponentStaticInfo & | InitStaticInfo (IComponent *componentPtr) |
static QByteArray | GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray()) |
Definition at line 19 of file CWavSamplesSaverComp.h.
Definition at line 24 of file CWavSamplesSaverComp.h.
|
protected |
Enumerator | |
---|---|
WC_BYTES_PER_SAMPLE | |
WC_BITS_PER_SAMPLE | |
WC_WAVE_FORMAT_PCM |
Definition at line 51 of file CWavSamplesSaverComp.h.
|
overridevirtual |
Get file extensions supported by this loader.
result | list of extensions, e.g. {"txt", "doc"}. |
dataObjectPtr | optional pointer to data object for which all possible extensions are requested. It can be nullptr if any object is meant. |
flags | set of flags |
doAppend | if true, list of extensions should be appended to existing list. |
Implements ifile::IFileTypeInfo.
|
overridevirtual |
Get description of object type associated with single extension.
Implements ifile::IFileTypeInfo.
|
overridevirtual |
Returns true
if object dataObject
can be loaded/saved.
dataObjectPtr | optional pointer to data object should be loaded/stored. It can be nullptr if any object is meant. |
filePathPtr | optional pointer to file should be loaded/stored. It can be nullptr if any file is meant. If it points at empty string, anonymous loading is mean. |
flags | combination of flags defined in QueryFlags and ifile::IFileTypeInfo::QueryFlags . |
beQuiet | if true, no user message output is allowed. |
Implements ifile::IFilePersistence.
|
overridevirtual |
This function loads data data
from file filePath
.
Implements ifile::IFilePersistence.
|
overridevirtual |
This function saves data data
to file filePath
.
Implements ifile::IFilePersistence.
© Witold Gantzke and Kirill Lepskiy