| 145 | } |
| 146 | |
| 147 | bool mitk::EventStateMachine::CheckCondition(const StateMachineCondition &condition, const InteractionEvent *event) |
| 148 | { |
| 149 | bool retVal = false; |
| 150 | ConditionDelegatesMapType::const_iterator delegateIter = m_ConditionDelegatesMap.find(condition.GetConditionName()); |
| 151 | if (delegateIter != m_ConditionDelegatesMap.cend()) |
| 152 | { |
| 153 | retVal = delegateIter->second->Execute(event); |
| 154 | } |
| 155 | else |
| 156 | { |
| 157 | MITK_WARN << "No implementation of condition '" << condition.GetConditionName() << "' has been found."; |
| 158 | } |
| 159 | |
| 160 | return retVal; |
| 161 | } |
| 162 | |
| 163 | void mitk::EventStateMachine::ExecuteAction(StateMachineAction *action, InteractionEvent *event) |
| 164 | { |
nothing calls this directly
no test coverage detected