ACF $AcfVersion:0$
CCompressedXmlFileReadArchive.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 <QtCore/QBuffer>
7#include <QtXml/QDomDocument>
8#include <QtXml/QDomNode>
9
10// ACF includes
12
13
14namespace ifile
15{
16
17
24{
25public:
27
32 const QString& filePath = "",
33 bool serializeHeader = true,
34 const iser::CArchiveTag& rootTag = s_acfRootTag);
35
36 bool OpenFile(const QString& filePath);
37
38protected:
39 // reimplemented (istd::ILogger)
40 virtual void DecorateMessage(
42 int id,
43 int flags,
44 QString& message,
45 QString& messageSource) const override;
46
47private:
48 QString m_openFileName;
49 QBuffer m_buffer;
50};
51
52
53} // namespace ifile
54
55
Qt-based implementation of archive reading from XML file.
CCompressedXmlFileReadArchive(const QString &filePath="", bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
Constructor initializing archive to work with file.
virtual void DecorateMessage(istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override
Decorate message parts before outputting.
bool OpenFile(const QString &filePath)
static CArchiveTag s_acfRootTag
Process tag used to group data in archive stream.
Definition CArchiveTag.h:22
Qt-based implementation of archive reading from XML file.
InformationCategory
Category of information.
Contains interfaces and implementations of file system related components.