Workspace 7.0.2
|
#include <functional>
#include <memory>
#include <QDebug>
#include <QtGlobal>
#include "Workspace/api_workspace.h"
#include "datafactorytraits.h"
#include "dataobject.h"
#include "dependency.h"
#include "typeadaptor.h"
#include "typeadaptorfactory.h"
#include "typedobject.h"
Classes | |
class | SimpleAdaptor< From, To > |
A TypeAdaptor class for converting between two types using an adapt(From, To) func. More... | |
class | SimpleAdaptorFactory< From, To > |
A TypeAdaptorFactory for an adaptor converting between two types using an adapt(From, To) func. More... | |
class | SimpleDataObjectAdaptor< From, To > |
A TypeAdaptor class for converting between two types using an adapt(DataObject from, DataObject to, bool copy) func. 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_SIMPLEADAPTOR(F, T, WORKSPACE_EXPORT_SYMBOL) |
#define | DECLARE_WORKSPACE_SIMPLEDATAOBJECTADAPTOR(F, T, WORKSPACE_EXPORT_SYMBOL) |
#define | DEFINE_WORKSPACE_SIMPLEADAPTOR(F, T, P, Func) |
#define | DEFINE_WORKSPACE_SIMPLEDATAOBJECTADAPTOR(F, T, P, Func) |
Functions | |
bool | adaptDataObject (DataObject &src, DataObject &dest, bool copy, const TypeAdaptorFactory *adaptorFactory) |
#define DECLARE_WORKSPACE_SIMPLEADAPTOR | ( | F, | |
T, | |||
WORKSPACE_EXPORT_SYMBOL | |||
) |
Use this macro in a header (combined with DEFINE_WORKSPACE_SIMPLEADAPTOR in the cpp) to define an adator based on a simple bool (*)(const F& src, T& dst) function
This macro is analogous to the DECLARE_WORKSPACE_DATA_FACTORY macro. See its detailed description for why we also need a similar macro for numeric type adaptor factories.
#define DECLARE_WORKSPACE_SIMPLEDATAOBJECTADAPTOR | ( | F, | |
T, | |||
WORKSPACE_EXPORT_SYMBOL | |||
) |
Use this macro in a header (combined with DEFINE_WORKSPACE_SIMPLEDATAOBJECTADAPTOR in the cpp) to define an adator based on a simple bool (*)(const DataObject& src, DataObject& dst, bool copy) function
This macro is analogous to the DECLARE_WORKSPACE_DATA_FACTORY macro. See its detailed description for why we also need a similar macro for numeric type adaptor factories.
#define DEFINE_WORKSPACE_SIMPLEADAPTOR | ( | F, | |
T, | |||
P, | |||
Func | |||
) |
F | The type to convert from. |
T | The type to convert to. |
P | A reference to the plugin that provides the adaptor. |
Func | The adaptor function taking the two types |
Use this macro in a cpp (combined with DECLARE_WORKSPACE_SIMPLEADAPTOR in the header) to define an adator based on a simple bool (*)(const F& src, T& dst, bool copy) function
A macro for explicitly instantiating an SimpleAdaptor and its factory. The use of this macro is the preferred method of instantiating such an adaptor and its factory for a particular from/to type pair. It should only ever be used in an implementation file and never in a header file. It would normally be used in the file that implements one of the two types, typically at the end of that file.
#define DEFINE_WORKSPACE_SIMPLEDATAOBJECTADAPTOR | ( | F, | |
T, | |||
P, | |||
Func | |||
) |
F | The type to convert from. |
T | The type to convert to. |
P | A reference to the plugin that provides the adaptor. |
Func | The adaptor function taking two DataObjects |
Use this macro in a cpp (combined with DECLARE_WORKSPACE_SIMPLEDATAOBJECTADAPTOR in the header) to define an adator based on a simple bool (*)(DataObject& src, DataObject& dst, bool copy) function
A macro for explicitly instantiating an SimpleAdaptor and its factory. The use of this macro is the preferred method of instantiating such an adaptor and its factory for a particular from/to type pair. It should only ever be used in an implementation file and never in a header file. It would normally be used in the file that implements one of the two types, typically at the end of that file.