- 將狀態圖實作策略從可重複使用的變更為非階層式。
- 停用狀態圖的產生程式碼。
例如:
//// Framework entries ////
public :
State* state1; // State variables
State* state2;
void rootStateEntDef(); // The initial transition
// method
int state1Takeevent1(); // event takers
int state2Takeevent2();
private :
void initRelations(); //InitRelations or
//InitStatechart is
//generated to initialize
//framework members
void cleanUpRelations();//CleanupRelations or
//CleanupStatechart is
//generated to clean up
//framework members in
//destruction.
註: 只有當
CG::Class::InitCleanUpRelations 內容設定為
Checked 時,才會產生
initRelations() 及
cleanUpRelations() 作業。請參閱「特性」視窗的適當
內容標籤上,針對此內容所提供的定義。