⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qevent.h

📁 这是状态机的一个框架结构的例子,可以作为状态机的基本架构
💻 H
字号:
/******************************************************************** 
 * Quantum Event declarations ("C+" version)
 * Copyright (c) 2002 Miro Samek, Palo Alto, CA.
 * All Rights Reserved.
 *******************************************************************/
#ifndef qevent_h
#define qevent_h

#ifndef cplus_h
#include "cplus.h"
#endif

typedef unsigned short QSignal;

CLASS(QEvent)
   QSignal sig;                    /* signal of the event instance */
   unsigned char poolId;    /* pool this event instance comes from */
   unsigned char useNum;     /* # of times it has been used so far */
METHODS
END_CLASS

enum {                                         /* standard signals */
   Q_INIT_SIG = 1,
   Q_ENTRY_SIG,
   Q_EXIT_SIG,
   Q_USER_SIG
};

#endif                                                   /* qevt_h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -