CSimpleXmlFileReadArchive.h
Go to the documentation of this file.
1 #ifndef ifile_CSimpleXmlFileReadArchive_included
2 #define ifile_CSimpleXmlFileReadArchive_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 
28  public CFileArchiveInfo
29 {
30 public:
33 
34  explicit CSimpleXmlFileReadArchive(const QString& filePath, bool serializeHeader = true, const iser::CArchiveTag& rootTag = s_acfRootTag);
36 
37 protected:
38  // reimplemented (istd::ILogger)
39  virtual void DecorateMessage(
41  int id,
42  int flags,
43  QString& message,
44  QString& messageSource) const;
45 
46 private:
47  QFile m_file;
48 };
49 
50 
51 } // namespace ifile
52 
53 
54 #endif // !ifile_CSimpleXmlFileReadArchive_included
55 
56 
Basic implementation of interface ifile::IFileArchiveInfo.
CSimpleXmlFileReadArchive(const QString &filePath, bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
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.
Base implementation of a reading archive for XML format using a stream implementation.
InformationCategory
Category of information.
iser::CXmlStreamReadArchiveBase BaseClass
Simple implementation of archive reading from XML file.
Process tag used to group data in archive stream.
Definition: CArchiveTag.h:21

© 2007-2017 Witold Gantzke and Kirill Lepskiy