📄 preparser.h
字号:
/**
* PreParser - Is a SAX Parser used to pre-parse AIML files.
*
* @author Taras Glek, Jonathan Roewen
*/
#ifndef PRE_PARSER_H
#define PRE_PARSER_H
#include <string>
#include <iostream>
#include <map>
using namespace std;
class PreParser
{
public:
PreParser() {
topic = "*";
that = "*";
pattern = "";
templateBegin = -1;
}
void elementStarted(const string &, int);
void elementClosed(const string &, int);
void elementStarted(const string &, map<string, string> *, int);
void elementText(const string &, int);
void elementCData(const string &, int);
void parse(istream &, const string &);
void addElement(string &, int);
private:
string pattern, topic, that, currentTag, filename;
int templateBegin;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -