ICF 3.1.1.10
Technical documentation of ICF Libraries
CGeneratedFileNameParamComp.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#pragma once
7
8
9// ICF includes
11#include <ifile/IFileTypeInfo.h>
13
14
15namespace ifile
16{
17
18
22class CGeneratedFileNameParamComp: public ilog::TLoggerCompWrap<ifile::CRelativeFileNameParamComp>
23{
24public:
26
27 I_BEGIN_COMPONENT(CGeneratedFileNameParamComp);
28 I_ASSIGN(m_autoDeleteAttrPtr, "AutoDelete", "If enabled, the file or directory specified by this object will be removed during component deinitialization", false, false);
29 I_ASSIGN(m_ensureDirectoryCreatedAttrPtr, "EnsureDirectoryCreated", "If enabled, the directory path will be created", false, false);
30 I_ASSIGN(m_fileTypeInfoCompPtr, "FileTypeInfo", "File type information used for specifing the file extension", false, "FileTypeInfo");
31 I_END_COMPONENT;
32
33 // reimplemented (ifile::IFileNameParam)
34 void SetPath(const QString& path) override;
35
36protected:
37 // reimplemented (icomp::CComponentBase)
38 void OnComponentCreated() override;
39 void OnComponentDestroyed() override;
40
41private:
42 I_ATTR(bool, m_autoDeleteAttrPtr);
43 I_ATTR(bool, m_ensureDirectoryCreatedAttrPtr);
44 I_REF(ifile::IFileTypeInfo, m_fileTypeInfoCompPtr);
45};
46
47
48} // namespace ifile
49
50
Component for auto generated file path.
ilog::TLoggerCompWrap< ifile::CRelativeFileNameParamComp > BaseClass
void SetPath(const QString &path) override
Set path.
Provide loading and saving of objects.
Wrapper provider of log-functionality for component based implementations.
Contains interfaces and implementations of file system related components.

© Witold Gantzke and Kirill Lepskiy