42 mTypeRegexp(typeRegexp),
43 mPatientModelService(patientModelService)
58 std::map<QString, DataPtr>::iterator iter, current;
60 for (iter=input.begin(); iter!=input.end(); )
63 if (!current->second->getType().contains(reg))
84 std::map<QString, DataPtr>::iterator iter, current;
85 for (iter=input.begin(); iter!=input.end(); )
88 if (!current->second->getUid().contains(reg))
109 for (
unsigned i=0; i<sorted.size(); ++i)
110 retval << sorted[i]->
getUid();
QString qstring_cast(const T &val)
SelectDataStringPropertyBase(PatientModelServicePtr patientModelService, QString typeRegexp=".*")
std::map< QString, DataPtr > filterOnUid(std::map< QString, DataPtr > input, QString regexp) const
virtual void setTypeRegexp(QString regexp)
virtual QStringList getValueRange() const
virtual QString getDisplayName() const
name of data entity. Used for display to user.
virtual void setValueName(const QString name)
static std::map< QString, DataPtr > filterOnType(std::map< QString, DataPtr > input, QString regexp)
boost::shared_ptr< class Data > DataPtr
std::vector< T > sortOnGroupsAndAcquisitionTime(std::map< QString, T > input)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual void setHelp(QString text)
virtual DataPtr getData() const
virtual QString getUid() const
virtual void setUidRegexp(QString regexp)
virtual QString convertInternal2Display(QString internal)
range of value. Use if data is constrained to a set.
virtual QString getValue() const =0
get the data value.
PatientModelServicePtr mPatientModelService