ACF $AcfVersion:0$
CSettingsReadArchive.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
8
9
10namespace iqt
11{
12
19{
20public:
23
33 const QString& organizationName,
34 const QString& applicationName,
35 const QString& rootKey,
36 QSettings::Scope settingsScope = QSettings::UserScope);
37
38 // reimplemented (iser::IArchive)
40
41 virtual bool BeginTag(const iser::CArchiveTag& tag) override;
42 virtual bool BeginMultiTag(const iser::CArchiveTag& tag, const iser::CArchiveTag& subTag, int& count) override;
43 virtual bool EndTag(const iser::CArchiveTag& tag) override;
44 virtual bool Process(QString& value) override;
45
46protected:
47 bool ReadStringNode(QString& text);
48
49 // reimplemented (iser::CTextReadArchiveBase)
50 virtual bool ReadTextNode(QByteArray& text) override;
51};
52
53
54} // namespace iqt
55
56
57
58
Basic implementation for an archive used Qt settings implementation as persistence medium.
The read archive used global system settings mechansim (by example Windows registry or INI file) as m...
virtual bool BeginMultiTag(const iser::CArchiveTag &tag, const iser::CArchiveTag &subTag, int &count) override
Begins a tagged section containing multiple elements of the same type.
iser::CTextReadArchiveBase BaseClass
bool ReadStringNode(QString &text)
virtual bool BeginTag(const iser::CArchiveTag &tag) override
Begins a tagged section in the archive.
virtual bool Process(QString &value) override
Process primitive type.
CSettingsArchiveBase BaseClass2
CSettingsReadArchive(const QString &organizationName, const QString &applicationName, const QString &rootKey, QSettings::Scope settingsScope=QSettings::UserScope)
Constructor.
virtual bool EndTag(const iser::CArchiveTag &tag) override
Ends a tagged section in the archive.
virtual bool ReadTextNode(QByteArray &text) override
Read single unformatted text node.
Process tag used to group data in archive stream.
Definition CArchiveTag.h:22
Common archive implementation of text-based reading archives.
virtual bool Process(bool &value) override
Processes (reads or writes) a boolean value.
This namespace contains non-UI utility classes based on Qt.