ACF $AcfVersion:0$
CSettingsWriteArchive.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
13
20{
21public:
24
35 const QString& organizationName,
36 const QString& applicationName,
37 const QString& rootKey,
38 QSettings::Scope settingsScope = QSettings::UserScope,
39 const iser::IVersionInfo* versionInfoPtr = NULL);
40
41 // reimplemented (iser::IArchive)
43 virtual bool BeginTag(const iser::CArchiveTag& tag) override;
44 virtual bool BeginMultiTag(const iser::CArchiveTag& tag, const iser::CArchiveTag& subTag, int& count) override;
45 virtual bool EndTag(const iser::CArchiveTag& tag) override;
46 virtual bool Process(QString& value) override;
47
48protected:
49 // reimplemented (iser::CTextWriteArchiveBase)
50 virtual bool WriteTextNode(const 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.
Write archive implementation for serialization based on QSettings.
virtual bool WriteTextNode(const QByteArray &text) override
Write single unformatted text node.
iser::CTextWriteArchiveBase BaseClass
iqt::CSettingsArchiveBase BaseClass2
virtual bool BeginTag(const iser::CArchiveTag &tag) override
Begins a tagged section in the archive.
CSettingsWriteArchive(const QString &organizationName, const QString &applicationName, const QString &rootKey, QSettings::Scope settingsScope=QSettings::UserScope, const iser::IVersionInfo *versionInfoPtr=NULL)
Constructor.
virtual bool EndTag(const iser::CArchiveTag &tag) override
Ends a tagged section in the archive.
virtual bool Process(QString &value) override
Process primitive type.
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.
Process tag used to group data in archive stream.
Definition CArchiveTag.h:22
Common archive implementation of text-based storing archives.
virtual bool Process(bool &value) override
Processes (reads or writes) a boolean value.
Provides access to version information.
#define NULL
Definition istd.h:74
This namespace contains non-UI utility classes based on Qt.