CGzXmlReadArchive.h
Go to the documentation of this file.
1 #ifndef zlib_CGzXmlReadArchive_included
2 #define zlib_CGzXmlReadArchive_included
3 
4 
5 // ZLIB includes
6 #include "zlib.h"
7 
8 // ACF includes
9 #include <QtCore/QString>
11 #include "ifile/CFileArchiveInfo.h"
12 
13 
14 namespace izlib
15 {
16 
17 
30 {
31 public:
34 
35  CGzXmlReadArchive(const QString& filePath, bool serializeHeader = true, const iser::CArchiveTag& rootTag = s_acfRootTag);
36  virtual ~CGzXmlReadArchive();
37 
38  // reimplemented (iser::CXmlReadArchiveBase)
39  virtual bool ReadToDelimeter(
40  const QByteArray& delimeters,
41  QByteArray& result,
42  bool skipDelimeter = true,
43  char* foundDelimeterPtr = NULL);
44 
45 private:
46  gzFile m_file;
47 
48  int m_lastReadChar;
49  bool m_useLastReadChar;
50 };
51 
52 
53 } // namespace izlib
54 
55 
56 #endif // !zlib_CGzXmlReadArchive_included
57 
58 
CGzXmlReadArchive(const QString &filePath, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
virtual bool ReadToDelimeter(const QByteArray &delimeters, QByteArray &result, bool skipDelimeter=true, char *foundDelimeterPtr=NULL)
ifile::CFileArchiveInfo BaseClass2
ZLIB compressed implementation of simple archive reading from XML file.
iser::CXmlReadArchiveBase BaseClass

© 2007-2011 Witold Gantzke and Kirill Lepskiy