56 mDataManager(dataManager),
57 mSpaceProvider(spaceProvider)
62 #define CREATE_IF_MATCH(typeName, TYPE) \ 64 if (typeName==TYPE::getTypeName()) \ 65 return TYPE::create(uid, ""); \ 67 #define CREATE_WITH_SERVICES_IF_MATCH(typeName, TYPE) \ 69 if (typeName==TYPE::getTypeName()) \ 70 return TYPE::create(uid, "", mDataManager, mSpaceProvider); \ 73 DataPtr DataFactory::createRaw(QString type, QString uid)
93 DataPtr retval = this->createRaw(type, uid);
97 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.