📄 match.h
字号:
/**
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -