ACF $AcfVersion:0$
CXmlStreamReadArchiveBase.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QTextStream>
7
8// ACF includes
10
11
12namespace iser
13{
14
15
20{
21public:
23
24 int GetLastReadLine() const;
25
26protected:
28
29 // reimplemented (iser::CXmlReadArchiveBase)
30 virtual bool ReadToDelimeter(
31 const QByteArray& delimeters,
32 QByteArray& result,
33 bool skipDelimeter = true,
34 char* foundDelimeterPtr = NULL) override;
35
36 // reimplemented (istd::ILogger)
37 virtual void DecorateMessage(
39 int id,
40 int flags,
41 QString& message,
42 QString& messageSource) const override;
43
44 QTextStream m_stream;
45
46private:
47 char m_lastReadChar;
48 bool m_useLastReadChar;
49
50 int m_lastReadLine;
51};
52
53
54} // namespace iser
55
56
57
58
static CArchiveTag s_acfRootTag
Process tag used to group data in archive stream.
Definition CArchiveTag.h:22
Base class for XML based reading archives.
Base implementation of a reading archive for XML format using a stream implementation.
virtual void DecorateMessage(istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override
Decorate message parts before outputting.
virtual bool ReadToDelimeter(const QByteArray &delimeters, QByteArray &result, bool skipDelimeter=true, char *foundDelimeterPtr=NULL) override
Read input stream till one of specified delimeters is found.
CXmlStreamReadArchiveBase(const CArchiveTag &rootTag=s_acfRootTag)
InformationCategory
Category of information.
#define NULL
Definition istd.h:74
Contains general persistence mechanism with basic archives implementations.