MCPcopy Create free account
hub / github.com/MITK/MITK / GetStringProperty

Method GetStringProperty

Modules/Core/src/Rendering/mitkAnnotation.cpp:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127bool mitk::Annotation::GetStringProperty(const std::string &propertyKey, std::string &string) const
128{
129 mitk::StringProperty::Pointer stringProp = dynamic_cast<mitk::StringProperty *>(GetProperty(propertyKey));
130 if (stringProp.IsNull())
131 {
132 return false;
133 }
134 else
135 {
136 // memcpy((void*)string, stringProp->GetValue(), strlen(stringProp->GetValue()) + 1 ); // looks dangerous
137 string = stringProp->GetValue();
138 return true;
139 }
140}
141
142void mitk::Annotation::SetIntProperty(const std::string &propertyKey, int intValue)
143{

Calls 3

GetPropertyFunction · 0.50
IsNullMethod · 0.45
GetValueMethod · 0.45