状态图实现

例如:

////    框架条目     ////
public :
   State* state1;          // 状态变量
   State* state2;
   void rootStateEntDef(); // 初始转换
                           // 方法
   int state1Takeevent1(); // 事件记录器
   int state2Takeevent2();
private :
   void initRelations();   //InitRelations 或
                           //InitStatechart
                           //生成以初始化
                           //框架成员
   void cleanUpRelations();//CleanupRelations 或
                           //CleanupStatechart
                           //生成以清除
                           //析构中的框架
                           //成员。
注: 操作 initRelations()cleanUpRelations() 只有在 CG::Class::InitCleanUpRelations 属性设置为 Checked 时才生成。请参阅“特征”窗口的相应属性选项卡上提供的属性定义。

反馈