match.h
来自「J-Alice是一个用C++实现的Ailcebot的克隆。它可以做为一个mini」· C头文件 代码 · 共 49 行
H
49 行
/**
* Match - The foundation of matches
*
* @author Jonathan Roewen
*/
#ifndef MATCH_H
#define MATCH_H
#include "Element.h"
#include <string>
#include <vector>
using namespace std;
class Nodemaster;
class Match
{
public:
void addInputStar(const string &s);
void addThatStar(const string &s);
void addTopicStar(const string &s);
void setInputPattern(const string &s);
void setThatPattern(const string &s);
void setTopicPattern(const string &s);
string getInputPattern() const;
string getThatPattern() const;
string getTopicPattern() const;
void setPath(const string &s);
string getPath() const;
void setNode(Nodemaster *n);
Nodemaster *getNode() const;
string getTemplate() const;
string getInputStar(unsigned int i) const;
string getThatStar(unsigned int i) const;
string getTopicStar(unsigned int i) const;
unsigned int getInputStarCount() const;
unsigned int getThatStarCount() const;
unsigned int getTopicStarCount() const;
private:
vector<string> inputStar, thatStar, topicStar;
string inputPattern, thatPattern, topicPattern;
string path;
Nodemaster *node;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?