ICF 3.1.1.10
Technical documentation of ICF Libraries
CTimeStampFileNameParamComp.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
12
13namespace ifile
14{
15
16
21{
22public:
24
25 I_BEGIN_COMPONENT(CTimeStampFileNameParamComp);
26 I_ASSIGN(m_fileExtensionAttrPtr, "FileExtension", "Extension of file, if path type is set to file", false, "");
27 I_ASSIGN(m_dateFormatAttrPtr, "DateFormat", "Format of timestamp string in name of file", true,"yyyyMMdd");
28 I_ASSIGN(m_prefixAttrPtr, "PrefixText", "Timestamp prefix text in name of log file", false, "");
29 I_ASSIGN(m_suffixAttrPtr, "SuffixText", "Timestamp suffix text in name of log file", false, "");
30 I_END_COMPONENT;
31
32 // reimplemented (ifile::IFileNameParam)
33 const QString& GetPath() const override;
34
35private:
36 I_ATTR(QString, m_fileExtensionAttrPtr);
37 I_ATTR(QString, m_dateFormatAttrPtr);
38 I_ATTR(QString, m_prefixAttrPtr);
39 I_ATTR(QString, m_suffixAttrPtr);
40
41 mutable QString m_generatedPath;
42};
43
44
45} // namespace ifile
46
47
File path generation using time stamp.
ifile::CRelativeFileNameParamComp BaseClass
const QString & GetPath() const override
Get path.
Contains interfaces and implementations of file system related components.

© Witold Gantzke and Kirill Lepskiy