Workspace 6.21.5
|
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QObject>
#include "Workspace/Application/LanguageUtils/classconstraints.h"
#include "Workspace/Application/LanguageUtils/stringhelpers.h"
#include "Workspace/Application/builtinplugin.h"
#include "Workspace/Application/logmanager.h"
#include "Workspace/DataExecution/DataObjects/objectarray.h"
#include "Workspace/DataExecution/DataObjects/objectdictionary.h"
#include "Workspace/DataExecution/DataObjects/simpleadaptor.h"
#include "typedobject.h"
Classes | |
class | JsonObjectGroupAdaptor< From, To > |
Template adaptor for adapting QJsonDocument from/to an ObjectGroup-derived class. More... | |
class | JsonObjectGroupAdaptor< From, QJsonDocument > |
A TypeAdaptor class for converting from Json to an ObjectGroup. More... | |
class | JsonObjectGroupAdaptor< QJsonDocument, To > |
A TypeAdaptor class for converting from Json to an ObjectGroup. More... | |
class | JsonObjectGroupAdaptorBase< From, To > |
Adaptor base class for converting from QJsonDocument to/from an ObjectGroup-derived class. More... | |
class | JsonObjectGroupAdaptorFactory< From, To > |
A TypeAdaptorFactory for an adaptor converting from Json to an ObjectGroup type (or vice-versa) More... | |
class | JsonObjectGroupAdaptorFactory< From, QJsonDocument > |
Partial template specialisation for the ObjectGroup-derived class -> QJsonDocument case. More... | |
class | JsonObjectGroupAdaptorFactory< QJsonDocument, To > |
Partial template specialisation for the QJsonDocument -> ObjectGroup-derived class case. More... | |
Namespaces | |
namespace | CSIRO |
Top level namespace for all Workspace code. | |
namespace | CSIRO::DataExecution |
Base workspace functionality not requiring a user interface. | |
Macros | |
#define | DECLARE_WORKSPACE_JSONOBJECTGROUPADAPTOR(T, EXPORTSPEC) |
#define | DEFINE_WORKSPACE_JSONOBJECTGROUPADAPTOR(T, P) |
Functions | |
bool | adapt (const ObjectGroup &from, QJsonDocument &to) |
bool | adapt (const QJsonDocument &from, ObjectGroup &to) |
bool | jsonFromString (const QString &jsonStr, QJsonDocument &result, bool logParseError=false) |
#define DECLARE_WORKSPACE_JSONOBJECTGROUPADAPTOR | ( | T, | |
EXPORTSPEC | |||
) |
T | The type (derived from DataExecution::ObjectGroup) being converted to/from QJsonDocument convert to |
EXPORTSPEC | The export specification for the adaptor class; usually the same as that of the plugin they belong to |
Declares an adaptor for converting between a QJsonDocument and a type, and vice-versa. The adaptor will still need to be registered in the Plugin::setup() method via an addFactory() call.
#define DEFINE_WORKSPACE_JSONOBJECTGROUPADAPTOR | ( | T, | |
P | |||
) |
T | The type (derived from DataExecution::ObjectGroup) being converted to/from QJsonDocument convert to |
P | The plugin instance that the adaptor belongs to. |
Defines template specialisations for an adaptor that converts between a QJsonDocument and a type, and vice-versa. The adaptor will still need to be registered in the Plugin::setup() method via an addFactory() call.