6#include <QtCore/QJsonDocument>
7#include <QtCore/QJsonObject>
8#include <QtCore/QJsonArray>
10#include <QtCore/QIODevice>
33 bool serializeHeader =
true,
40 virtual bool Process(QString& value)
override;
69 QJsonArray::ConstIterator m_arrayIterator;
76 QList<const iser::CArchiveTag*>
m_tags;
static CArchiveTag s_acfRootTag
Process tag used to group data in archive stream.
void SetValue(const QJsonValue value)
QJsonValue GetJsonValue()
void SetKey(const QString &key)
Implementation of an ACF archive deserializing from a JSON string.
iser::CArchiveTag m_rootTag
bool SetContent(QIODevice *devicePtr)
CJsonReadArchiveBase(bool serializeHeader=true, const iser::CArchiveTag &rootTag=s_acfRootTag)
CTextReadArchiveBase BaseClass
virtual bool BeginTag(const iser::CArchiveTag &tag) override
Begins a tagged section in the archive.
QList< const iser::CArchiveTag * > m_tags
bool ReadStringNode(QString &text)
virtual bool ReadTextNode(QByteArray &text) override
Read single unformatted text node.
QList< HelperIterator > m_iterators
virtual bool Process(QString &value) override
Process primitive type.
virtual bool EndTag(const iser::CArchiveTag &tag) override
Ends a tagged section in the archive.
virtual bool BeginMultiTag(const iser::CArchiveTag &tag, const iser::CArchiveTag &subTag, int &count) override
Begins a tagged section containing multiple elements of the same type.
Common archive implementation of text-based reading archives.
Contains general persistence mechanism with basic archives implementations.