CCompressedXmlFileWriteArchive.h
Go to the documentation of this file.
1 #ifndef ifile_CCompressedXmlFileWriteArchive_included
2 #define ifile_CCompressedXmlFileWriteArchive_included
3 
4 
5 #include <QtXml/QDomDocument>
6 #include <QtXml/QDomNode>
7 #include <QtCore/QFile>
8 #include <QtCore/QBuffer>
9 
10 // ACF includes
11 #include <ifile/CFileArchiveInfo.h>
13 
14 
15 namespace ifile
16 {
17 
18 
27 {
28 public:
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 
46 private:
47  QBuffer m_buffer;
48  QFile m_file;
49 };
50 
51 
52 } // namespace ifile
53 
54 
55 #endif // !ifile_CCompressedXmlFileWriteArchive_included
56 
57 
Basic implementation of interface ifile::IFileArchiveInfo.
static CArchiveTag s_acfRootTag
Definition: CArchiveBase.h:35
Provides access to version information.
Definition: IVersionInfo.h:22
bool OpenFile(const QString &filePath)
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.
Base class of compact XML write archive.
#define NULL
Definition: istd.h:64
Process tag used to group data in archive stream.
Definition: CArchiveTag.h:21

© 2007-2017 Witold Gantzke and Kirill Lepskiy