RKH
|
Describes a composite state. More...
#include <rkhsm.h>
Data Fields | |
RKHROM RKH_TR_T * | trtbl |
Points to state transition table. | |
RKH_PPRO_T | prepro |
Points to event preprocessor. More... | |
RKHROM void * | defchild |
Points to state's default child. | |
RKH_INIT_ACT_T | initialAction |
Points to state's initial action. | |
RKHROM RKH_SHIST_T * | history |
Points to state's history. | |
RKH_PPRO_T prepro |
Points to event preprocessor.
Aditionally, by means of single inheritance in C it could be used as state's abstract data. Aditionally, implementing the single inheritance in C is very simply by literally embedding the base type, RKH_PPRO_T in this case, as the first member of the derived structure.
This argument is optional, thus it could be declared as NULL.
Example: