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

Method EndElement

Modules/Core/src/Interactions/mitkEventConfig.cpp:187–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void 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
206std::string mitk::EventConfigXMLParser::ReadXMLStringAttribute(const std::string &name, const char **atts)
207{

Callers

nothing calls this directly

Calls 2

IsNotNullMethod · 0.80
InsertMappingMethod · 0.80

Tested by

no test coverage detected