27 std::ostringstream nameStream;
28 nameStream <<
"DICOM."
29 << std::setw(4) << std::setfill(
'0') << std::hex << std::uppercase << group << std::nouppercase <<
"."
30 << std::setw(4) << std::setfill(
'0') << std::hex << std::uppercase << element;
32 return nameStream.str();
37 std::string
const &backwardsCompatiblePropertyName,
39 std::string &propertyValue)
50 if (!propertyValue.empty() || propertyList->
GetStringProperty(backwardsCompatiblePropertyName.c_str(), propertyValue))
mitk::BaseProperty * GetProperty(const std::string &propertyKey) const
Get a property by its name.
std::string MITKCORE_EXPORT GeneratePropertyNameForDICOMTag(unsigned int group, unsigned int element)
Key-value list holding instances of BaseProperty.
Abstract base class for properties.
virtual std::string GetValueAsString() const
bool GetStringProperty(const char *propertyKey, std::string &stringValue) const
Convenience method to access the value of a StringProperty.
bool MITKCORE_EXPORT GetBackwardsCompatibleDICOMProperty(unsigned int group, unsigned int element, std::string const &backwardsCompatiblePropertyName, PropertyList const *propertyList, std::string &propertyValue)