Implementation of state classes

This section implements a dispatch method and a constructor for each state object. You can change this implementation by choosing the flat implementation strategy, which does not generate state classes.

For example:

class_state1::class_state1(class* c, State* p, 
   State* cmp): LeafState(p, cmp) { 
   // State constructor
};

int class_state1::takeEvent(short id) {
   int res = eventNotConsumed;
   switch(id) {
      case event1_id: {
         res = concept->state1Takeevent1(); 
         // Dispatching the transition method
         break;
      };
   };
};

Feedback