This commit is contained in:
Timur A. Fatkhullin
2025-06-03 23:42:05 +03:00
parent 52a29e0f91
commit d502796d6b
3 changed files with 147 additions and 5 deletions

View File

@@ -138,6 +138,18 @@ int main()
fsm::MccFiniteStateMachine fsmach(ST1{});
std::cout << "STATES: ";
for (auto& el : fsmach.stateIDs()) {
std::cout << std::quoted(el) << " ";
}
std::cout << "\n";
std::cout << "EVENTS: ";
for (auto& el : fsmach.eventIDs()) {
std::cout << std::quoted(el) << " ";
}
std::cout << "\n";
fsmach.dispatchEvent<EV1>();
// fsmach.dispatchEvent<EV1>();