I use hierarchical FSM for the built-in C ++ application interface. I would like to use small functions to determine whether certain interstate events can be triggered, and also use them to change changes in the database: however, creating a new class with different event functions for each state is complicated, as well as setting pointers to them like callbacks. (here we are talking about 300 functions.)
If C ++ supports lambda functions, I would use them, but I donβt have much weight in the project architecture, so Iβm reluctant to use third-party solutions that require large library integration (for example, boost) or the inclusion of additional preprocessor steps.
Any ideas?
source
share