| 39 | } |
| 40 | |
| 41 | mitk::StateMachineState::TransitionVector mitk::StateMachineState::GetTransitionList(const std::string &eventClass, |
| 42 | const std::string &eventVariant) |
| 43 | { |
| 44 | TransitionVector transitions; |
| 45 | mitk::StateMachineTransition::Pointer t = mitk::StateMachineTransition::New("", eventClass, eventVariant); |
| 46 | for (auto it = m_Transitions.begin(); it != m_Transitions.end(); ++it) |
| 47 | { |
| 48 | if (**it == *t) // do not switch it and t, order matters, see mitk::StateMachineTransition == operator |
| 49 | transitions.push_back(*it); |
| 50 | } |
| 51 | return transitions; |
| 52 | } |
| 53 | |
| 54 | std::string mitk::StateMachineState::GetName() const |
| 55 | { |