ICF 3.1.1.10
Technical documentation of ICF Libraries
CXmlStringWriteArchive.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// Qt includes
10#include <QtCore/QBuffer>
11
12// ICF includes
14
15
16namespace iser
17{
18
19
24{
25public:
27
29 const IVersionInfo* versionInfoPtr = nullptr,
30 bool serializeHeader = true,
31 const CArchiveTag& rootTag = s_acfRootTag);
33
37 virtual const QByteArray& GetString() const;
38
39protected:
41
42 // reimplemented (iser::CXmlWriteArchiveBase)
43 virtual bool WriteString(const QByteArray& value);
44
45private:
46 QTextStream m_stream;
47 QBuffer m_buffer;
48};
49
50
51} // namespace iser
52
53
static CArchiveTag s_acfRootTag
Process tag used to group data in archive stream.
Definition CArchiveTag.h:25
Simple implementation of archive for writing of XML given as a string.
CXmlStringWriteArchive(const IVersionInfo *versionInfoPtr=nullptr, 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)
Base class for XML storing archives.
Provides access to version information.
Contains general persistence mechanism with basic archives implementations.

© Witold Gantzke and Kirill Lepskiy