CFileNamingParamsComp.h
Go to the documentation of this file.
1 #ifndef ifileproc_CFileNamingParamsComp_included
2 #define ifileproc_CFileNamingParamsComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QStringList>
7 
8 // ACF includes
9 #include <icomp/CComponentBase.h>
10 
11 // ACF-Solutions includes
13 
14 
15 namespace ifileproc
16 {
17 
18 
20  public icomp::CComponentBase,
22 {
23 public:
26 
27  I_BEGIN_COMPONENT(ifileproc::CFileNamingParamsComp);
28  I_REGISTER_INTERFACE(iser::ISerializable);
29  I_REGISTER_INTERFACE(ifileproc::IFileNamingParams);
30  I_ASSIGN(m_prefixAttrPtr, "Prefix", "Prefix attached to the output file name", true, "");
31  I_ASSIGN(m_suffixAttrPtr, "Suffix", "Suffix attached to the output file name", true, "");
32  I_ASSIGN(m_overwriteStrategyAttrPtr, "OverwriteStrategy", "Strategy for overwriting of existing files.\n0 - Overwrite existing file\n1 - Add auto generated numbered suffix to the output file name", true, 0);
33  I_ASSIGN_MULTI_0(m_patternsToRemoveAttrPtr, "PatternsToRemove", "List of patterns that will be removed from the output file name", false);
34  I_END_COMPONENT;
35 
36 protected:
37  // reimplemented (icomp::CComponentBase)
38  virtual void OnComponentCreated();
39 
40 private:
41  I_ATTR(QString, m_prefixAttrPtr);
42  I_ATTR(QString, m_suffixAttrPtr);
43  I_ATTR(int, m_overwriteStrategyAttrPtr);
44  I_MULTIATTR(QString, m_patternsToRemoveAttrPtr);
45 };
46 
47 
48 } // namespace ifileproc
49 
50 
51 #endif // !ifileproc_CFileNamingParamsComp_included
52 
53 
ifileproc::CFileNamingParams BaseClass2
Interface for calculation parameters of the new file name for any file item.

© 2007-2017 Witold Gantzke and Kirill Lepskiy