| 74 | |
| 75 | template <size_t NUM_CASES> |
| 76 | inline SwitchNode<NUM_CASES>::SwitchNode(const std::string& name, |
| 77 | const NodeConfig& config) |
| 78 | : ControlNode::ControlNode(name, config) |
| 79 | { |
| 80 | setRegistrationID("Switch"); |
| 81 | for(unsigned i = 1; i <= NUM_CASES; i++) |
| 82 | { |
| 83 | case_keys_.push_back(std::string("case_") + std::to_string(i)); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | template <size_t NUM_CASES> |
| 88 | inline void SwitchNode<NUM_CASES>::halt() |