CCompactXmlFileWriteArchive.h
Go to the documentation of this file.
1 #ifndef ifile_CCompactXmlFileWriteArchive_included
2 #define ifile_CCompactXmlFileWriteArchive_included
3 
4 
5 #include <QtXml/QDomDocument>
6 #include <QtXml/QDomNode>
7 #include <QtCore/QFile>
8 
9 // ACF includes
10 #include <ifile/CFileArchiveInfo.h>
12 
13 
14 namespace ifile
15 {
16 
17 
26 {
27 public:
30 
35  const QString& filePath,
36  const iser::IVersionInfo* versionInfoPtr = NULL,
37  bool serializeHeader = true,
38  const iser::CArchiveTag& rootTag = s_acfRootTag);
40 
41  bool OpenFile(const QString& filePath);
42 
43  bool Flush();
44 
45 protected:
46  // reimplemented (iser::CTextWriteArchiveBase)
47  virtual bool WriteTextNode(const QByteArray& text);
48 
49 private:
50  QFile m_file;
51 };
52 
53 
54 } // namespace ifile
55 
56 
57 #endif // !ifile_CCompactXmlFileWriteArchive_included
58 
59 
Basic implementation of interface ifile::IFileArchiveInfo.
bool OpenFile(const QString &filePath)
static CArchiveTag s_acfRootTag
Definition: CArchiveBase.h:35
Provides access to version information.
Definition: IVersionInfo.h:22
iser::CCompactXmlWriteArchiveBase BaseClass
Base class of compact XML write archive.
virtual bool WriteTextNode(const QByteArray &text)
Write single unformatted text node.
#define NULL
Definition: istd.h:64
Qt-based implementation of archive for writing in compact XML format.
Process tag used to group data in archive stream.
Definition: CArchiveTag.h:21
CCompactXmlFileWriteArchive(const QString &filePath, const iser::IVersionInfo *versionInfoPtr=NULL, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
Constructor initializing archive to open file immediatelly.

© 2007-2017 Witold Gantzke and Kirill Lepskiy