ICF 3.1.1.10
Technical documentation of ICF Libraries
CFileNamingParamsComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef ifileproc_CFileNamingParamsComp_included
7#define ifileproc_CFileNamingParamsComp_included
8
9
10// Qt includes
11#include <QtCore/QStringList>
12
13// ICF includes
16
17
18namespace ifileproc
19{
20
21
25{
26public:
29
30 I_BEGIN_COMPONENT(ifileproc::CFileNamingParamsComp);
31 I_REGISTER_INTERFACE(iser::ISerializable);
32 I_REGISTER_INTERFACE(ifileproc::IFileNamingParams);
33 I_ASSIGN(m_prefixAttrPtr, "Prefix", "Prefix attached to the output file name", true, "");
34 I_ASSIGN(m_suffixAttrPtr, "Suffix", "Suffix attached to the output file name", true, "");
35 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);
36 I_ASSIGN_MULTI_0(m_patternsToRemoveAttrPtr, "PatternsToRemove", "List of patterns that will be removed from the output file name", false);
37 I_END_COMPONENT;
38
39protected:
40 // reimplemented (icomp::CComponentBase)
41 void OnComponentCreated() override;
42
43private:
44 I_ATTR(QString, m_prefixAttrPtr);
45 I_ATTR(QString, m_suffixAttrPtr);
46 I_ATTR(int, m_overwriteStrategyAttrPtr);
47 I_MULTIATTR(QString, m_patternsToRemoveAttrPtr);
48};
49
50
51} // namespace ifileproc
52
53
54#endif // !ifileproc_CFileNamingParamsComp_included
55
56
Base class for component implementation.
ifileproc::CFileNamingParams BaseClass2
Interface for calculation parameters of the new file name for any file item.
Common class for all classes which objects can be archived or restored from archive.
Contains the classes for general file processing.

© Witold Gantzke and Kirill Lepskiy