CSimpleXmlFileWriteArchive.h
Go to the documentation of this file.
1 #ifndef ifile_CSimpleXmlFileWriteArchive_included
2 #define ifile_CSimpleXmlFileWriteArchive_included
3 
4 
5 // Qt includes
6 #include <QtCore/QFile>
7 
8 // ACF includes
10 #include <ifile/CFileArchiveInfo.h>
11 
12 
13 namespace ifile
14 {
15 
16 
27  public CFileArchiveInfo
28 {
29 public:
32 
34  const QString& filePath,
35  const iser::IVersionInfo* versionInfoPtr = NULL,
36  bool serializeHeader = true,
37  const iser::CArchiveTag& rootTag = s_acfRootTag);
39 
40 protected:
41  // reimplemented (iser::CXmlWriteArchiveBase)
42  virtual bool WriteString(const QByteArray& value);
43 
44 private:
45  QTextStream m_stream;
46  QFile m_file;
47 };
48 
49 
50 } // namespace ifile
51 
52 
53 #endif // !ifile_CSimpleXmlFileWriteArchive_included
54 
55 
Basic implementation of interface ifile::IFileArchiveInfo.
virtual bool WriteString(const QByteArray &value)
static CArchiveTag s_acfRootTag
Definition: CArchiveBase.h:35
Base class for XML storing archives.
Provides access to version information.
Definition: IVersionInfo.h:22
CSimpleXmlFileWriteArchive(const QString &filePath, const iser::IVersionInfo *versionInfoPtr=NULL, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
Simple implementation of archive for writing in XML format.
#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