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(
33  istd::IChangeable& data,
34  const QString& filePath = QString(),
35  ibase::IProgressManager* progressManagerPtr = NULL) const;
36  virtual int SaveToFile(
37  const istd::IChangeable& data,
38  const QString& filePath = QString(),
39  ibase::IProgressManager* progressManagerPtr = NULL) const;
40 
41  // reimplemented (ifile::IFileTypeInfo)
42  virtual bool GetFileExtensions(QStringList& result, const istd::IChangeable* dataObjectPtr = NULL, int flags = -1, bool doAppend = false) const;
43  virtual QString GetTypeDescription(const QString* extensionPtr = NULL) const;
44 
45 protected:
47  {
51  };
52 };
53 
54 
55 } // namespace imeas
56 
57 
58 #endif // !imeas_CWavSamplesLoaderComp_included
59 
60 
virtual bool GetFileExtensions(QStringList &result, const istd::IChangeable *dataObjectPtr=NULL, int flags=-1, bool doAppend=false) const
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 SaveToFile(const istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const
virtual int LoadFromFile(istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const

© 2007-2017 Witold Gantzke and Kirill Lepskiy