Workspace 7.0.2
Classes | Namespaces | Macros
typedsqlboundobjectgroup.h File Reference
#include <QCoreApplication>
#include <QSqlQueryModel>
#include "Workspace/DataExecution/DataObjects/typeddatafactory.h"
#include "Workspace/DataExecution/DataObjects/typedobjectarray.h"
#include "DataAnalysis/dataanalysis_api.h"
#include "sqlboundobjectclassdata.h"
#include "sqlboundobjectgroupdata.h"
#include "sqldatamodel.h"
Include dependency graph for typedsqlboundobjectgroup.h:
This graph shows which files directly or indirectly include this file:

Classes

class  ClassDataRegistry< T >
 
class  TypedSqlBoundObjectGroup< Derived, PrimaryKeyType >
 Typed derived class of SqlBoundObjectGroup from which all implementations of SqlBoundObjectGroup should extend. Uses CRTP to implement most methods. More...
 

Namespaces

namespace  CSIRO
 Top level namespace for all Workspace code.
 
namespace  CSIRO::DataAnalysis
 Fundamental data analysis support.
 
namespace  CSIRO::DataExecution
 Base workspace functionality not requiring a user interface.
 

Macros

#define DECLARE_WORKSPACE_SQL_DATA_FACTORIES(T, WORKSPACE_EXPORT_SYMBOL)
 
#define DEFINE_WORKSPACE_SQL_DATA_FACTORIES(T, P)
 

Macro Definition Documentation

◆ DECLARE_WORKSPACE_SQL_DATA_FACTORIES

#define DECLARE_WORKSPACE_SQL_DATA_FACTORIES (   T,
  WORKSPACE_EXPORT_SYMBOL 
)

◆ DEFINE_WORKSPACE_SQL_DATA_FACTORIES

#define DEFINE_WORKSPACE_SQL_DATA_FACTORIES (   T,
 
)
Value:
DEFINE_WORKSPACE_DATA_FACTORY_NO_QMETATYPE(CSIRO::DataExecution::TypedObjectArray<T>, P) \
DEFINE_WORKSPACE_DERIVEDTOBASEADAPTOR(T, CSIRO::DataAnalysis::SqlBoundObjectGroup, P) \
namespace CSIRO \
{ \
namespace DataAnalysis \
{ \
template<> \
SqlBoundObjectClassData& ClassDataRegistry<T>::getClassDataInstance() \
{ \
static SqlBoundObjectClassData classData(&SqlDataModel::getBoundTableName<T>); \
return classData; \
} \
} \
}
static SqlBoundObjectClassData & getClassDataInstance()
An SqlBoundObjectGroup class is bound to a specific SQL table or view, and its instance objects are b...
Definition: sqlboundobjectgroup.h:166
Generic array class for holding an array of DataObject's.
Definition: objectarray.h:53
Convenience typed interface to an object array, which can be converted to a general ObjectArray in Wo...
Definition: typedobjectarray.h:44
Top level namespace for all Workspace code.
Definition: applicationsupportplugin.cpp:32
#define DEFINE_WORKSPACE_DATA_FACTORY_NO_QMETATYPE(T, P)
Definition: typeddatafactory.h:1440