例如:
class::class(OMThread* thread) {
NOTIFY_CONSTRUCTOR(class, class(), 0,
class_SERIALIZE);
setThread(thread);
initRelations();
};
如果您要定义状态,请使用 initStatechart,而不是 initRelations:
class::~class() {
NOTIFY_DESTRUCTOR(~class);
cleanUpRelations();
};
类似地,如果您要定义状态,请使用 cleanUpStatechart,而不是 cleanUpRelations。