6#ifndef SWIFT_MISC_VARIANTMAP_H
7#define SWIFT_MISC_VARIANTMAP_H
9#include <initializer_list>
CDictionary & operator=(const CDictionary &other)
Copy assignment.
CDictionary()=default
Default constructor.
A sequence of log categories.
Status messages, e.g. from Core -> GUI.
Map of { QString, CVariant } pairs.
CVariantMap(const CVariantMap &)=default
Copy constructor.
void convertFromJson(const QJsonObject &json)
Assign from JSON object.
CVariantMap & operator=(CVariantMap &&other) noexcept
Move assignment operator.
QJsonObject & mergeToMemoizedJson(QJsonObject &json) const
Insert values from this map into an existing compact JSON object.
~CVariantMap()=default
Destructor.
CStatusMessageList convertFromMemoizedJsonNoThrow(const QJsonObject &json, const CLogCategoryList &categories, const QString &prefix)
Call convertFromMemoizedJson, catch any CJsonException that are thrown and return them as CStatusMess...
void convertFromMemoizedJson(const QJsonObject &json)
From compact JSON format.
QJsonObject toMemoizedJson() const
To compact JSON format.
CVariantMap(CVariantMap &&other) noexcept
Move constructor.
CVariantMap & operator=(const CVariantMap &other)
Copy assignment operator.
CVariantMap()=default
Default constructor.
CDictionary()=default
Default constructor.
QJsonObject toJson() const
Cast to JSON object.
QJsonObject & mergeToJson(QJsonObject &json) const
Insert values from this map into an existing JSON object.
CStatusMessageList convertFromJsonNoThrow(const QJsonObject &json, const CLogCategoryList &categories, const QString &prefix)
Call convertFromJson, catch any CJsonException that are thrown and return them as CStatusMessage.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.