CWavSamplesLoaderComp.h
Go to the documentation of this file.
1 #ifndef imeas_CWavSamplesLoaderComp_included
2 #define imeas_CWavSamplesLoaderComp_included
3 
4 
5 // ACF includes
7 #include "icomp/CComponentBase.h"
8 
9 
10 namespace imeas
11 {
12 
13 
15  public icomp::CComponentBase,
16  virtual public ifile::IFilePersistence
17 {
18 public:
20 
21  I_BEGIN_COMPONENT(CWavSamplesLoaderComp);
22  I_REGISTER_INTERFACE(ifile::IFileTypeInfo);
23  I_REGISTER_INTERFACE(ifile::IFilePersistence);
24  I_END_COMPONENT;
25 
26  // reimplemented (ifile::IFilePersistence)
27  virtual bool IsOperationSupported(
28  const istd::IChangeable* dataObjectPtr,
29  const QString* filePathPtr = NULL,
30  int flags = -1,
31  bool beQuiet = true) const;
32  virtual int LoadFromFile(istd::IChangeable& data, const QString& filePath) const;
33  virtual int SaveToFile(const istd::IChangeable& data, const QString& filePath) const;
34 
35  // reimplemented (ifile::IFileTypeInfo)
36  virtual bool GetFileExtensions(QStringList& result, int flags = -1, bool doAppend = false) const;
37  virtual QString GetTypeDescription(const QString* extensionPtr = NULL) const;
38 
39 protected:
41  {
45  };
46 };
47 
48 
49 } // namespace imeas
50 
51 
52 #endif // !imeas_CWavSamplesLoaderComp_included
53 
54 
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const
virtual bool IsOperationSupported(const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=NULL, int flags=-1, bool beQuiet=true) const
virtual int LoadFromFile(istd::IChangeable &data, const QString &filePath) const
virtual bool GetFileExtensions(QStringList &result, int flags=-1, bool doAppend=false) const
virtual int SaveToFile(const istd::IChangeable &data, const QString &filePath) const

© 2007-2011 Witold Gantzke and Kirill Lepskiy