ACF $AcfVersion:0$
CCompressedXmlFileWriteArchive.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#include <QtCore/QBuffer>
10
11// ACF includes
14
15
16namespace ifile
17{
18
19
28{
29public:
32
37 const QString& filePath,
38 const iser::IVersionInfo* versionInfoPtr = NULL,
39 bool serializeHeader = true,
40 const iser::CArchiveTag& rootTag = s_acfRootTag);
42
43 bool OpenFile(const QString& filePath);
44
45 bool Flush();
46
47private:
48 QBuffer m_buffer;
49 QFile m_file;
50};
51
52
53} // namespace ifile
54
55
Qt-based implementation of archive for writing in compact XML format.
CCompressedXmlFileWriteArchive(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)
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.