MCPcopy Create free account
hub / github.com/digint/tinyfsm / On

Class On

examples/api/simple_switch.cpp:34–38  ·  view source on GitHub ↗

---------------------------------------------------------------------------- 3. State Declarations

Source from the content-addressed store, hash-verified

32// 3. State Declarations
33//
34struct On : Switch
35{
36 void entry() override { std::cout << "* Switch is ON" << std::endl; };
37 void react(Toggle const &) override { transit<Off>(); };
38};
39
40struct Off : Switch
41{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected