ACF $AcfVersion:0$
CSimpleXmlFileWriteArchive.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/QFile>
7
8// ACF includes
11
12
13namespace ifile
14{
15
16
27 public CFileArchiveInfo
28{
29public:
32
34 const QString& filePath,
35 const iser::IVersionInfo* versionInfoPtr = NULL,
36 bool serializeHeader = true,
37 const iser::CArchiveTag& rootTag = s_acfRootTag);
39
40protected:
41 // reimplemented (iser::CXmlWriteArchiveBase)
42 virtual bool WriteString(const QByteArray& value) override;
43
44private:
45 QTextStream m_stream;
46 QFile m_file;
47};
48
49
50} // namespace ifile
51
52
Basic implementation of interface ifile::IFileArchiveInfo.
Simple implementation of archive for writing in XML format.
virtual bool WriteString(const QByteArray &value) override
CSimpleXmlFileWriteArchive(const QString &filePath, const iser::IVersionInfo *versionInfoPtr=NULL, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
static CArchiveTag s_acfRootTag
Process tag used to group data in archive stream.
Definition CArchiveTag.h:22
Base class for XML storing archives.
Provides access to version information.
#define NULL
Definition istd.h:74
Contains interfaces and implementations of file system related components.