📄 templateprocessor.h
字号:
/**
* TemplateProcessor - The big dude on campus
*
* @author Jonathan Roewen
*/
#ifndef TEMPLATE_PROCESSOR_H
#define TEMPLATE_PROCESSOR_H
#include <map>
#include <string>
using namespace std;
#include "AimlProcessor.h"
class TemplateProcessor : public AimlProcessor
{
public:
~TemplateProcessor();
string getName() const;
string getVersion() const;
string process(Match *, PElement, Responder *, const string &);
static void addProcessor(AimlProcessor *);
static AimlProcessor *getProcessor(const string &name);
static string processTemplate(Match *, PElement, Responder *, const string &id);
private:
static map<string, AimlProcessor *> processors;
static AimlProcessor *hook;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -