ACF $AcfVersion:0$
CTimeStampFileNameParamComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
7
8
9namespace ifile
10{
11
12
17{
18public:
20
21 I_BEGIN_COMPONENT(CTimeStampFileNameParamComp);
22 I_ASSIGN(m_fileExtensionAttrPtr, "FileExtension", "Extension of file, if path type is set to file", false, "");
23 I_ASSIGN(m_dateFormatAttrPtr, "DateFormat", "Format of timestamp string in name of file", true,"yyyyMMdd");
24 I_ASSIGN(m_prefixAttrPtr, "PrefixText", "Timestamp prefix text in name of log file", false, "");
25 I_ASSIGN(m_suffixAttrPtr, "SuffixText", "Timestamp suffix text in name of log file", false, "");
26 I_END_COMPONENT;
27
28 // reimplemented (ifile::IFileNameParam)
29 virtual const QString& GetPath() const override;
30
31private:
32 I_ATTR(QString, m_fileExtensionAttrPtr);
33 I_ATTR(QString, m_dateFormatAttrPtr);
34 I_ATTR(QString, m_prefixAttrPtr);
35 I_ATTR(QString, m_suffixAttrPtr);
36
37 mutable QString m_generatedPath;
38};
39
40
41} // namespace ifile
42
43
File path generation using time stamp.
virtual const QString & GetPath() const override
Get path.
ifile::CRelativeFileNameParamComp BaseClass
Contains interfaces and implementations of file system related components.