CGzXmlWriteArchive.h
Go to the documentation of this file.
1 #ifndef zlib_CGzXmlWriteArchive_included
2 #define zlib_CGzXmlWriteArchive_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 // ZLIB includes
9 #include "zlib.h"
10 
11 // ACF includes
13 #include "ifile/CFileArchiveInfo.h"
14 
15 
16 namespace izlib
17 {
18 
19 
31 {
32 public:
35 
37  const QString& filePath,
38  const iser::IVersionInfo* versionInfoPtr = NULL,
39  bool serializeHeader = true,
40  const iser::CArchiveTag& rootTag = s_acfRootTag);
41  virtual ~CGzXmlWriteArchive();
42 
43 protected:
44  enum{
45  CHUNK_SIZE = 16384
46  };
47 
48  // reimplemented (iser::CXmlWriteArchiveBase)
49  virtual bool WriteString(const QByteArray& value);
50 
51 private:
52  gzFile m_file;
53 };
54 
55 
56 } // namespace izlib
57 
58 
59 #endif // !zlib_CGzXmlWriteArchive_included
60 
61 
virtual bool WriteString(const QByteArray &value)
ifile::CFileArchiveInfo BaseClass2
ZLIB compressed implementation of archive for writing in XML format.
iser::CXmlWriteArchiveBase BaseClass
CGzXmlWriteArchive(const QString &filePath, const iser::IVersionInfo *versionInfoPtr=NULL, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)

© 2007-2011 Witold Gantzke and Kirill Lepskiy