54 mDataManager(dataManager),
55 mSpaceProvider(spaceProvider)
60 #define CREATE_IF_MATCH(typeName, TYPE) \
62 if (typeName==TYPE::getTypeName()) \
63 return TYPE::create(uid, ""); \
65 #define CREATE_METRIC_IF_MATCH(typeName, TYPE) \
67 if (typeName==TYPE::getTypeName()) \
68 return TYPE::create(uid, "", mDataManager, mSpaceProvider); \
71 DataPtr DataFactory::createRaw(QString type, QString uid)
92 DataPtr retval = this->createRaw(type, uid);
96 retval->setName(name);
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
#define CREATE_IF_MATCH(typeName, TYPE)
DataPtr create(QString type, QString uid, QString name="")
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
cxLogicManager_EXPORT SpaceProviderPtr spaceProvider()
DataFactory(PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
#define CREATE_METRIC_IF_MATCH(typeName, TYPE)