CGeneratedFileNameParamComp.h
Go to the documentation of this file.
1 #ifndef ifile_CGeneratedFileNameParamComp_included
2 #define ifile_CGeneratedFileNameParamComp_included
3 
4 
5 // ACF includes
6 #include <ilog/TLoggerCompWrap.h>
7 #include <ifile/IFileTypeInfo.h>
9 
10 
11 namespace ifile
12 {
13 
14 
18 class CGeneratedFileNameParamComp: public ilog::TLoggerCompWrap<ifile::CRelativeFileNameParamComp>
19 {
20 public:
22 
23  I_BEGIN_COMPONENT(CGeneratedFileNameParamComp);
24  I_ASSIGN(m_autoDeleteAttrPtr, "AutoDelete", "If enabled, the file or directory specified by this object will be removed during component deinitialization", false, false);
25  I_ASSIGN(m_ensureDirectoryCreatedAttrPtr, "EnsureDirectoryCreated", "If enabled, the directory path will be created", false, false);
26  I_ASSIGN(m_fileTypeInfoCompPtr, "FileTypeInfo", "File type information used for specifing the file extension", false, "FileTypeInfo");
27  I_END_COMPONENT;
28 
29  // reimplemented (ifile::IFileNameParam)
30  virtual void SetPath(const QString& path);
31 
32 protected:
33  // reimplemented (icomp::CComponentBase)
34  virtual void OnComponentCreated();
35  virtual void OnComponentDestroyed();
36 
37 private:
38  I_ATTR(bool, m_autoDeleteAttrPtr);
39  I_ATTR(bool, m_ensureDirectoryCreatedAttrPtr);
40  I_REF(ifile::IFileTypeInfo, m_fileTypeInfoCompPtr);
41 };
42 
43 
44 } // namespace ifile
45 
46 
47 #endif // !ifile_CGeneratedFileNameParamComp_included
48 
49 
Provide loading and saving of objects.
Definition: IFileTypeInfo.h:22
Wrapper provider of log-functionality for component based implementations.
ilog::TLoggerCompWrap< ifile::CRelativeFileNameParamComp > BaseClass
virtual void SetPath(const QString &path)
Set path.
Component for auto generated file path.

© 2007-2017 Witold Gantzke and Kirill Lepskiy