| 185 | } |
| 186 | |
| 187 | void mitk::EventConfigXMLParser::EndElement(const char *elementName) |
| 188 | { |
| 189 | const std::string name(elementName); |
| 190 | // At end of input section, all necessary infos are collected to created an interaction event. |
| 191 | if (name == InteractionEventConst::xmlTagEventVariant()) |
| 192 | { |
| 193 | InteractionEvent::Pointer event = EventFactory::CreateEvent(d->m_EventPropertyList); |
| 194 | if (event.IsNotNull()) |
| 195 | { |
| 196 | d->m_CurrEventMapping.interactionEvent = event; |
| 197 | d->InsertMapping(d->m_CurrEventMapping); |
| 198 | } |
| 199 | else |
| 200 | { |
| 201 | MITK_WARN << "EventConfig: Unknown Event-Type in config. Entry skipped: " << name; |
| 202 | } |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | std::string mitk::EventConfigXMLParser::ReadXMLStringAttribute(const std::string &name, const char **atts) |
| 207 | { |
nothing calls this directly
no test coverage detected