Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkXML2EventParser.h>
Public Types | |
typedef std::vector< mitk::InteractionEvent::Pointer > | EventContainerType |
Public Member Functions | |
XML2EventParser (const std::string &filename, const us::Module *module=nullptr) | |
Construct an InteractionEventList object based on a XML configuration file. More... | |
XML2EventParser (std::istream &inputStream) | |
Construct an InteractionEventList object based on a XML configuration file. More... | |
EventContainerType | GetInteractions () |
~XML2EventParser () override | |
Protected Member Functions | |
void | StartElement (const char *elementName, const char **atts) override |
Derived from XMLReader. More... | |
void | EndElement (const char *elementName) override |
Derived from XMLReader. More... | |
std::string | ReadXMLStringAttribute (const std::string &name, const char **atts) |
bool | ReadXMLBooleanAttribute (const std::string &name, const char **atts) |
Definition at line 38 of file mitkXML2EventParser.h.
typedef std::vector<mitk::InteractionEvent::Pointer> mitk::XML2EventParser::EventContainerType |
Definition at line 64 of file mitkXML2EventParser.h.
mitk::XML2EventParser::XML2EventParser | ( | const std::string & | filename, |
const us::Module * | module = nullptr |
||
) |
Construct an InteractionEventList object based on a XML configuration file.
Uses the specified resource file containing an XML event configuration to construct an EventConfig object. If the resource is invalid, the created EventConfig object will also be invalid.
filename | The resource name relative to the Interactions resource folder. |
module |
Definition at line 106 of file mitkXML2EventParser.cpp.
References ModuleContext::GetModule(), us::GetModuleContext(), us::Module::GetName(), us::Module::GetResource(), us::ModuleResource::IsValid(), and MITK_ERROR.
mitk::XML2EventParser::XML2EventParser | ( | std::istream & | inputStream | ) |
Construct an InteractionEventList object based on a XML configuration file.
Uses the specified istream refering to a file containing an XML event configuration to construct an EventConfig object. If the resource is invalid, the created EventConfig object will also be invalid.
inputStream | std::ifstream to XML configuration file |
Definition at line 127 of file mitkXML2EventParser.cpp.
References MITK_ERROR.
|
inlineoverride |
Definition at line 67 of file mitkXML2EventParser.h.
|
overrideprotected |
Derived from XMLReader.
Definition at line 61 of file mitkXML2EventParser.cpp.
References mitk::EventFactory::CreateEvent(), MITK_WARN, and mitk::InteractionEventConst::xmlTagEventVariant().
|
inline |
Definition at line 66 of file mitkXML2EventParser.h.
|
protected |
Definition at line 98 of file mitkXML2EventParser.cpp.
|
protected |
Definition at line 79 of file mitkXML2EventParser.cpp.
|
overrideprotected |
Derived from XMLReader.
Definition at line 32 of file mitkXML2EventParser.cpp.
References mitk::PropertyList::New(), mitk::InteractionEventConst::xmlParameterEventClass(), mitk::InteractionEventConst::xmlParameterName(), mitk::InteractionEventConst::xmlParameterValue(), mitk::InteractionEventConst::xmlTagAttribute(), mitk::InteractionEventConst::xmlTagConfigRoot(), and mitk::InteractionEventConst::xmlTagEventVariant().