ACF $AcfVersion:0$
CXmlStringWriteArchive.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// Qt includes
6#include <QtCore/QBuffer>
7
8// ACF includes
10
11
12namespace iser
13{
14
15
22{
23public:
25
27 const IVersionInfo* versionInfoPtr = NULL,
28 bool serializeHeader = true,
29 const CArchiveTag& rootTag = s_acfRootTag);
31
35 virtual const QByteArray& GetString() const;
36
37protected:
39
40 // reimplemented (iser::CXmlWriteArchiveBase)
41 virtual bool WriteString(const QByteArray& value) override;
42
43private:
44 QTextStream m_stream;
45 QBuffer m_buffer;
46};
47
48
49} // namespace iser
50
51
52
53
static CArchiveTag s_acfRootTag
Process tag used to group data in archive stream.
Definition CArchiveTag.h:22
Simple implementation of archive for writing of XML given as a string.
CXmlStringWriteArchive(const IVersionInfo *versionInfoPtr=NULL, bool serializeHeader=true, const CArchiveTag &rootTag=s_acfRootTag)
virtual const QByteArray & GetString() const
Close the archive and get the created XML string.
virtual bool WriteString(const QByteArray &value) override
Base class for XML storing archives.
Provides access to version information.
#define NULL
Definition istd.h:74
Contains general persistence mechanism with basic archives implementations.