CFileNamingComp.h
Go to the documentation of this file.
1 #ifndef ifileproc_CFileNamingComp_included
2 #define ifileproc_CFileNamingComp_included
3 
4 
5 // ACF includes
7 
8 #include "ilog/TLoggerCompWrap.h"
9 
10 #include "ifile/IFileNameParam.h"
11 
12 
13 // AcfSln includes
14 #include "ifileproc/IFileNaming.h"
16 
17 
18 namespace ifileproc
19 {
20 
21 
28  virtual public ifileproc::IFileNaming
29 {
30 public:
32 
33  I_BEGIN_COMPONENT(CFileNamingComp);
34  I_REGISTER_INTERFACE(ifileproc::IFileNaming);
35  I_ASSIGN(m_fileTypeInfoCompPtr, "OutputFileInfo", "Output file info, which will be used for file name calculation", false, "OutputFileInfo");
36  I_ASSIGN(m_directoryPathCompPtr, "DirectoryPath", "Output directory", true, "DirectoryPath");
37  I_ASSIGN(m_fileNamingParamsCompPtr, "FileNamingParams", "Rules for the file naming", false, "FileNamingParams");
38  I_END_COMPONENT;
39 
40  // reimplemented (ifileproc::IFileNaming)
41  virtual QString GetFilePath(const QString& inputFileName) const;
42 
43 private:
44  I_REF(ifile::IFileTypeInfo, m_fileTypeInfoCompPtr);
45  I_REF(ifile::IFileNameParam, m_directoryPathCompPtr);
46  I_REF(ifileproc::IFileNamingParams, m_fileNamingParamsCompPtr);
47 };
48 
49 
50 } // namespace ifileproc
51 
52 
53 #endif // !ifileproc_CFileNamingComp_included
54 
virtual QString GetFilePath(const QString &inputFileName) const
Get the new file path for a given input file name.
ilog::CLoggerComponentBase BaseClass
Interface for calculation of the new file path for an existing file.
Definition: IFileNaming.h:16
Component for calculating of the new file name.
Interface for calculation parameters of the new file name for any file item.

© 2007-2011 Witold Gantzke and Kirill Lepskiy