📄 g_cmdpool.h
字号:
// g_cmdpool.h: interface for the CG_CmdPool class.
#ifndef __CG_CMD_POOL_H__
#define __CG_CMD_POOL_H__
// use stl
#include <string>
#include <vector>
using namespace std;
struct SCmd
{
void *fun;
int num;
string str;
string desc;
};
class CG_CmdPool
{
public:
int GetCmdCount();
bool AddCmd(SCmd *cmd);
SCmd *GetCmdByNum(int num);
SCmd *GetCmdByStr(char *str);
CG_CmdPool();
virtual ~CG_CmdPool();
private:
vector<SCmd> m_cmdList;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -