Parses XML state machine descriptions and builds the state machine structure.
More...
#include <mitkStateMachineContainer.h>
Parses XML state machine descriptions and builds the state machine structure.
Reads state machine pattern XML files from module resources, creates the corresponding StateMachineState, StateMachineTransition, StateMachineAction, and StateMachineCondition objects, and connects them into a complete state machine graph.
Definition at line 43 of file mitkStateMachineContainer.h.
◆ StateMachineCollectionType
◆ StateMachineContainer()
| mitk::StateMachineContainer::StateMachineContainer |
( |
| ) |
|
|
protected |
◆ ~StateMachineContainer()
| mitk::StateMachineContainer::~StateMachineContainer |
( |
| ) |
|
|
overrideprotected |
◆ EndElement()
| void mitk::StateMachineContainer::EndElement |
( |
const char * |
elementName | ) |
|
|
overrideprotected |
Handle the end of an XML element during parsing.
Overridden from vtkXMLParser.
◆ GetStartState()
| StateMachineState::Pointer mitk::StateMachineContainer::GetStartState |
( |
| ) |
const |
Return the start state of the state machine.
- Returns
- Smart pointer to the start state, or nullptr if not found.
◆ LoadBehavior()
| bool mitk::StateMachineContainer::LoadBehavior |
( |
const std::string & |
fileName, |
|
|
const us::Module * |
module |
|
) |
| |
Load a state machine pattern from an XML resource file.
Loads an XML resource file in the given module context. The files have to be placed in the Resources/Interaction folder of their respective module.
- Parameters
-
| [in] | fileName | the name of the XML file to load (without path). |
| [in] | module | the module context to load the resource from. If nullptr, the current module context is used. |
- Returns
- True if the file was parsed successfully without errors.
- Exceptions
-
◆ New()
◆ StartElement()
| void mitk::StateMachineContainer::StartElement |
( |
const char * |
elementName, |
|
|
const char ** |
atts |
|
) |
| |
|
overrideprotected |
Handle the start of an XML element during parsing.
Overridden from vtkXMLParser.
◆ vtkTypeMacro()
The documentation for this class was generated from the following file: