ACF $AcfVersion:0$
CCompactXmlFileWriteArchive.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 <QtXml/QDomDocument>
7#include <QtXml/QDomNode>
8#include <QtCore/QFile>
9
10// ACF includes
13
14
15namespace ifile
16{
17
18
27{
28public:
31
36 const QString& filePath,
37 const iser::IVersionInfo* versionInfoPtr = NULL,
38 bool serializeHeader = true,
39 const iser::CArchiveTag& rootTag = s_acfRootTag);
41
42 bool OpenFile(const QString& filePath);
43
44 bool Flush();
45
46protected:
47 // reimplemented (iser::CTextWriteArchiveBase)
48 virtual bool WriteTextNode(const QByteArray& text) override;
49
50private:
51 QFile m_file;
52};
53
54
55} // namespace ifile
56
57
Qt-based implementation of archive for writing in compact XML format.
virtual bool WriteTextNode(const QByteArray &text) override
Write single unformatted text node.
CCompactXmlFileWriteArchive(const QString &filePath, const iser::IVersionInfo *versionInfoPtr=NULL, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
Constructor initializing archive to open file immediatelly.
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:22
Base class of compact XML write archive.
Provides access to version information.
#define NULL
Definition istd.h:74
Contains interfaces and implementations of file system related components.