ACF $AcfVersion:0$
CBinaryReadArchiveBase.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// ACF includes
7
8
9namespace iser
10{
11
12
17{
18public:
20
22 {
23 MI_STRING_TOO_LONG = 0x3f320b0
24 };
25
26 // reimplemented (iser::IArchive)
27 virtual bool BeginTag(const CArchiveTag& tag) override;
28 virtual bool EndTag(const CArchiveTag& tag) override;
29 virtual bool Process(bool& value) override;
30 virtual bool Process(char& value) override;
31 virtual bool Process(quint8& value) override;
32 virtual bool Process(qint8& value) override;
33 virtual bool Process(quint16& value) override;
34 virtual bool Process(qint16& value) override;
35 virtual bool Process(quint32& value) override;
36 virtual bool Process(qint32& value) override;
37 virtual bool Process(quint64& value) override;
38 virtual bool Process(qint64& value) override;
39 virtual bool Process(float& value) override;
40 virtual bool Process(double& value) override;
41 virtual bool Process(QByteArray& value) override;
42 virtual bool Process(QString& value) override;
43
44protected:
48 virtual int GetMaxStringLength() const;
49};
50
51
52} // namespace iser
53
54
55
Process tag used to group data in archive stream.
Definition CArchiveTag.h:22
Base class for archive implementations reading data based on its binary representation.
virtual bool Process(QByteArray &value) override
Process primitive type.
virtual int GetMaxStringLength() const
Get maximal allowed string size.
virtual bool Process(quint16 &value) override
Process primitive type.
virtual bool Process(quint8 &value) override
Process primitive type.
virtual bool Process(qint16 &value) override
Process primitive type.
virtual bool Process(char &value) override
Process primitive type.
virtual bool Process(quint64 &value) override
Process primitive type.
virtual bool Process(QString &value) override
Process primitive type.
virtual bool Process(double &value) override
Process primitive type.
virtual bool Process(qint32 &value) override
Process primitive type.
virtual bool Process(qint8 &value) override
Process primitive type.
virtual bool Process(float &value) override
Process primitive type.
virtual bool Process(quint32 &value) override
Process primitive type.
virtual bool Process(bool &value) override
Processes (reads or writes) a boolean value.
virtual bool EndTag(const CArchiveTag &tag) override
Ends a tagged section in the archive.
virtual bool Process(qint64 &value) override
Process primitive type.
virtual bool BeginTag(const CArchiveTag &tag) override
Begins a tagged section in the archive.
Basic implementation of an abstract archive for data reading.
Contains general persistence mechanism with basic archives implementations.