ICF 3.0.5.47
Technical documentation of ICF Libraries
CCompactXmlFileWriteArchive.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#include <QtXml/QDomDocument>
10#include <QtXml/QDomNode>
11#include <QtCore/QFile>
12
13// ICF includes
16
17
18namespace ifile
19{
20
21
30{
31public:
34
39 const QString& filePath,
40 const iser::IVersionInfo* versionInfoPtr = nullptr,
41 bool serializeHeader = true,
42 const iser::CArchiveTag& rootTag = s_acfRootTag);
44
45 bool OpenFile(const QString& filePath);
46
47 bool Flush();
48
49protected:
50 // reimplemented (iser::CTextWriteArchiveBase)
51 virtual bool WriteTextNode(const QByteArray& text);
52
53private:
54 QFile m_file;
55};
56
57
58} // namespace ifile
59
60
Qt-based implementation of archive for writing in compact XML format.
CCompactXmlFileWriteArchive(const QString &filePath, const iser::IVersionInfo *versionInfoPtr=nullptr, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
Constructor initializing archive to open file immediatelly.
virtual bool WriteTextNode(const QByteArray &text)
Write single unformatted text node.
bool OpenFile(const QString &filePath)
iser::CCompactXmlWriteArchiveBase BaseClass
Basic implementation of interface ifile::IFileArchiveInfo.
static CArchiveTag s_acfRootTag
Process tag used to group data in archive stream.
Definition CArchiveTag.h:25
Base class of compact XML write archive.
Provides access to version information.
Contains interfaces and implementations of file system related components.

© Witold Gantzke and Kirill Lepskiy