Medical Imaging Interaction Toolkit
2016.11.0
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=NULL) | |
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 () | |
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 42 of file mitkXML2EventParser.h.
typedef std::vector<mitk::InteractionEvent::Pointer> mitk::XML2EventParser::EventContainerType |
Definition at line 68 of file mitkXML2EventParser.h.
mitk::XML2EventParser::XML2EventParser | ( | const std::string & | filename, |
const us::Module * | module = NULL |
||
) |
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 110 of file mitkXML2EventParser.cpp.
References filename, 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 131 of file mitkXML2EventParser.cpp.
References MITK_ERROR.
|
inline |
Definition at line 71 of file mitkXML2EventParser.h.
|
overrideprotected |
Derived from XMLReader.
Definition at line 65 of file mitkXML2EventParser.cpp.
References mitk::EventFactory::CreateEvent(), MITK_WARN, and mitk::InteractionEventConst::xmlTagEventVariant().
|
inline |
Definition at line 70 of file mitkXML2EventParser.h.
|
protected |
Definition at line 102 of file mitkXML2EventParser.cpp.
|
protected |
Definition at line 83 of file mitkXML2EventParser.cpp.
|
overrideprotected |
Derived from XMLReader.
Definition at line 36 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().