10#include <QtCore/QJsonDocument>
11#include <QtCore/QJsonObject>
12#include <QtCore/QJsonArray>
13#include <QtCore/QVector>
14#include <QtCore/QTextStream>
33 QByteArray& inputString,
35 QJsonDocument::JsonFormat jsonFormat = QJsonDocument::Compact);
46 std::function<
bool(
int)> resizeFn =
nullptr)
override;
52 std::function<
bool(
int)> resizeFn =
nullptr)
override;
68 QJsonDocument::JsonFormat m_jsonFormat;
70 QByteArray m_currentAttribute;
72 bool m_serializeHeader;
75 bool m_isSeparatorNeeded;
76 bool m_allowAttribute;
78 QList<const iser::CArchiveTag*> m_tagsStack;
Process tag used to group data in archive stream.
Implementation of an ICF Archive serializing to JSON string.
bool BeginTag(const iser::CArchiveTag &tag) override
Begin of archive tag.
virtual ~CJsonStringWriteArchive()
bool WriteTextNode(const QByteArray &text) override
Write single unformatted text node.
bool IsTagSkippingSupported() const override
Check if skiping to the end of tag on EndTag is supported.
bool ProcessGroupList(const iser::CArchiveTag &listTag, const iser::CArchiveTag &groupTag, int count, std::function< bool(int, iser::IArchive &)> groupArchiveFn, std::function< bool(int)> resizeFn=nullptr) override
bool ProcessAnyList(const iser::CArchiveTag &listTag, const iser::CArchiveTag &subTag, int count, std::function< bool(int, iser::IArchive &)> iterArchiveFn, std::function< bool(int)> resizeFn=nullptr) override
void WriteTag(const iser::CArchiveTag &tag, QString separator, bool isWriteTag=true)
CJsonStringWriteArchive(QByteArray &inputString, const iser::IVersionInfo *versionInfoPtr=nullptr, QJsonDocument::JsonFormat jsonFormat=QJsonDocument::Compact)
bool BeginTagForArray(const CArchiveTag &tag)
bool EndTag(const iser::CArchiveTag &tag) override
End of archive tag.
iser::CTextWriteArchiveBase BaseClass
bool ProcessLeaf(const iser::CArchiveTag &tag, QString &value) override
Process primitive type.
Common archive implementation of text-based storing archives.
bool ProcessLeaf(const CArchiveTag &tag, bool &value) override
Process primitive type.
Represent input/output persistence archive.
Provides access to version information.
Contains general persistence mechanism with basic archives implementations.