| 28 | } |
| 29 | |
| 30 | bool mitk::EnumerationProperty::AddEnum(const std::string &name, const IdType &id) |
| 31 | { |
| 32 | if (false == this->IsValidEnumerationValue(id) && |
| 33 | false == this->IsValidEnumerationValue(name)) |
| 34 | { |
| 35 | this->GetEnumIds().insert(std::make_pair(id, name)); |
| 36 | this->GetEnumStrings().insert(std::make_pair(name, id)); |
| 37 | |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | bool mitk::EnumerationProperty::SetValue(const std::string &name) |
| 45 | { |