Value:
{ \
namespace DataExecution \
{ \
template<> \
template<> \
WORKSPACE_EXPORT_SYMBOL \
T* \
OperationFactoryTraits<T>::create(); \
template<> \
{ \
return __FILE__; \
} \
} \
}
QString getRawHeaderPath() const
static const OperationFactory & getInstance()
Top level namespace for all Workspace code.
Definition: applicationsupportplugin.cpp:32
This macro is analogous to the DECLARE_WORKSPACE_DATA_FACTORY macro. See its detailed description for why we also need a similar macro for operation factories. Unlike for data factories, however, most of the OperationFactoryTraits member functions are actually defined in the class definition by implementing them in terms of getInstance() . The create() function could theoretically also be implemented this way, but we specialize that too with this macro so that the return type can be T instead of the OperationFactory base class.