ICF 3.0.5.47
Technical documentation of ICF Libraries
CCompactXmlMemWriteArchive.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/QFile>
11#include <QtCore/QBuffer>
12#include <QtXml/QDomDocument>
13#include <QtXml/QDomNode>
14
15// ICF includes
17
18
19namespace iser
20{
21
22
28{
29public:
31
37 const iser::IVersionInfo* versionInfoPtr = nullptr,
38 bool serializeHeader = true,
39 const iser::CArchiveTag& rootTag = s_acfRootTag);
40
44 const QByteArray& GetString() const;
45
46private:
47 QBuffer m_textBuffer;
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
Qt-based implementation of archive for writing in XML format.
const QByteArray & GetString() const
Close the archive and get the created XML string.
CCompactXmlMemWriteArchive(const iser::IVersionInfo *versionInfoPtr=nullptr, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
Constructor initializing archive to work with memory.
Base class of compact XML write archive.
Provides access to version information.
Contains general persistence mechanism with basic archives implementations.

© Witold Gantzke and Kirill Lepskiy