CCompressedXmlFileReadArchive.h
Go to the documentation of this file.
1 #ifndef ifile_CCompressedXmlFileReadArchive_included
2 #define ifile_CCompressedXmlFileReadArchive_included
3 
4 
5 // Qt includes
6 #include <QtCore/QBuffer>
7 #include <QtXml/QDomDocument>
8 #include <QtXml/QDomNode>
9 
10 // ACF includes
12 
13 
14 namespace ifile
15 {
16 
17 
24 {
25 public:
27 
32  const QString& filePath = "",
33  bool serializeHeader = true,
34  const iser::CArchiveTag& rootTag = s_acfRootTag);
35 
36  bool OpenFile(const QString& filePath);
37 
38 protected:
39  // reimplemented (istd::ILogger)
40  virtual void DecorateMessage(
42  int id,
43  int flags,
44  QString& message,
45  QString& messageSource) const;
46 
47 private:
48  QString m_openFileName;
49  QBuffer m_buffer;
50 };
51 
52 
53 } // namespace ifile
54 
55 
56 #endif // !ifile_CCompressedXmlFileReadArchive_included
57 
58 
static CArchiveTag s_acfRootTag
Definition: CArchiveBase.h:35
virtual void DecorateMessage(istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
Decorate message parts before outputting.
iser::CCompactXmlReadArchiveBase BaseClass
CCompressedXmlFileReadArchive(const QString &filePath="", bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
Constructor initializing archive to work with file.
InformationCategory
Category of information.
Qt-based implementation of archive reading from XML file.
Qt-based implementation of archive reading from XML file.
bool OpenFile(const QString &filePath)
Process tag used to group data in archive stream.
Definition: CArchiveTag.h:21

© 2007-2017 Witold Gantzke and Kirill Lepskiy