CFileCopyOverLoaderComp.h
Go to the documentation of this file.
1 #ifndef ifileproc_CFileCopyOverLoaderComp_included
2 #define ifileproc_CFileCopyOverLoaderComp_included
3 
4 
5 #include "istd/IChangeable.h"
6 
8 
10 #include "ilog/TLoggerCompWrap.h"
11 
12 
13 namespace ifileproc
14 {
15 
16 
23  virtual public IFileConvertCopy
24 {
25 public:
27 
28  I_BEGIN_COMPONENT(CFileCopyOverLoaderComp);
29  I_REGISTER_INTERFACE(IFileConvertCopy);
30 
31  I_ASSIGN(m_objectCompPtr, "Object", "Object used as representation of copied data", true, "Object");
32  I_ASSIGN(m_inputLoaderCompPtr, "InputLoader", "input file loader", true, "InputLoader");
33  I_ASSIGN(m_outputLoaderCompPtr, "OutputLoader", "output file loader", true, "OutputLoader");
34  I_END_COMPONENT;
35 
36  // reimplemented (ifileproc::IFileConvertCopy)
37  virtual bool ConvertFiles(
38  const QString& inputPath,
39  const QString& outputPath,
40  const iprm::IParamsSet* paramsPtr = NULL) const;
41 
42 private:
43  I_REF(istd::IChangeable, m_objectCompPtr);
44  I_REF(ifile::IFilePersistence, m_inputLoaderCompPtr);
45  I_REF(ifile::IFilePersistence, m_outputLoaderCompPtr);
46 };
47 
48 
49 } // namespace ifileproc
50 
51 
52 #endif // !ifileproc_CFileCopyOverLoaderComp_included
53 
54 
Common interface for file copying.
General file copy or transformation.
virtual bool ConvertFiles(const QString &inputPath, const QString &outputPath, const iprm::IParamsSet *paramsPtr=NULL) const
Copy a file or files from inputPath to destination outputPath.

© 2007-2011 Witold Gantzke and Kirill Lepskiy