views:

101

answers:

1

Hello, I am developing a network based server which can potentially have 100s of states and actions/events. So far I have managed with simple switch statements but now feel a need for a state machine which I can configure externally by text/xml file.

What is your suggestion for existing C++ state machine which allows me to configure states/events externally from the file?

I looked at the boost state machine but it seems it lacks the ability to generate the classes from state machine file and I don't want to create 100s of class manually?

What are other options?

+1  A: 

If you want to be flexible, you should look for Qt State Machine http://doc.qt.nokia.com/4.6/statemachine-api.html

Rodrigo Pinho Pereira de Souza
QT state machine seem to be interesting but it has a commercial license.
rjoshi