ICF 3.1.1.10
Technical documentation of ICF Libraries
CSimpleXmlFileWriteArchive.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// Qt includes
10#include <QtCore/QFile>
11
12// ICF includes
15
16
17namespace ifile
18{
19
20
29 public CFileArchiveInfo
30{
31public:
34
36 const QString& filePath,
37 const iser::IVersionInfo* versionInfoPtr = nullptr,
38 bool serializeHeader = true,
39 const iser::CArchiveTag& rootTag = s_acfRootTag);
41
42protected:
43 // reimplemented (iser::CXmlWriteArchiveBase)
44 virtual bool WriteString(const QByteArray& value);
45
46private:
47 QTextStream m_stream;
48 QFile m_file;
49};
50
51
52} // namespace ifile
53
54
Basic implementation of interface ifile::IFileArchiveInfo.
Simple implementation of archive for writing in XML format.
virtual bool WriteString(const QByteArray &value)
CSimpleXmlFileWriteArchive(const QString &filePath, const iser::IVersionInfo *versionInfoPtr=nullptr, 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:25
Base class for XML storing archives.
Provides access to version information.
Contains interfaces and implementations of file system related components.

© Witold Gantzke and Kirill Lepskiy