6#include <QtCore/QJsonDocument>
7#include <QtCore/QJsonObject>
8#include <QtCore/QJsonArray>
9#include <QtCore/QVector>
10#include <QtCore/QDataStream>
11#include <QtCore/QBuffer>
32 void SetFormat(QJsonDocument::JsonFormat jsonFormat);
39 virtual bool Process(QString& value)
override;
40 virtual bool Process(QByteArray& value)
override;
Process tag used to group data in archive stream.
Implementation of an ACF Archive serializing to JSON string.
bool InitArchive(QByteArray &inputString)
virtual bool BeginTag(const iser::CArchiveTag &tag) override
Begins a tagged section in the archive.
bool InitStream(bool serializeHeader)
virtual bool EndTag(const iser::CArchiveTag &tag) override
Ends a tagged section in the archive.
QJsonDocument::JsonFormat m_jsonFormat
QList< TagsStackItem > m_tagsStack
virtual bool WriteTextNode(const QByteArray &text) override
Write single unformatted text node.
iser::CTextWriteArchiveBase BaseClass
CJsonWriteArchiveBase(const iser::IVersionInfo *versionInfoPtr, bool serializeHeader, const iser::CArchiveTag &rootTag)
bool m_quotationMarksRequired
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.
iser::CArchiveTag m_rootTag
void SetFormat(QJsonDocument::JsonFormat jsonFormat)
bool InitArchive(QIODevice *devicePtr)
virtual bool Process(QString &value) override
Process primitive type.
virtual bool IsTagSkippingSupported() const override
Checks if skipping to the end of a tag on EndTag() is supported.
bool WriteTag(const iser::CArchiveTag &tag, QString separator)
virtual bool Process(QByteArray &value) override
Process primitive type.
virtual bool ProcessData(void *dataPtr, int size) override
Process binary data block.
Common archive implementation of text-based storing archives.
virtual bool Process(bool &value) override
Processes (reads or writes) a boolean value.
Provides access to version information.
Contains general persistence mechanism with basic archives implementations.