35 mDataManager(dataManager),
36 mSpaceProvider(spaceProvider)
41 #define CREATE_IF_MATCH(typeName, TYPE) \ 43 if (typeName==TYPE::getTypeName()) \ 44 return TYPE::create(uid, ""); \ 46 #define CREATE_WITH_SERVICES_IF_MATCH(typeName, TYPE) \ 48 if (typeName==TYPE::getTypeName()) \ 49 return TYPE::create(uid, "", mDataManager, mSpaceProvider); \ 52 DataPtr DataFactory::createRaw(QString type, QString uid)
72 DataPtr retval = this->createRaw(type, uid);
76 retval->setName(name);
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
#define CREATE_IF_MATCH(typeName, TYPE)
DataPtr create(QString type, QString uid, QString name="")
#define CREATE_WITH_SERVICES_IF_MATCH(typeName, TYPE)
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
DataFactory(PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
Namespace for all CustusX production code.