-
Notifications
You must be signed in to change notification settings - Fork 0
/
rule.h
37 lines (31 loc) · 780 Bytes
/
rule.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* @class Rule
*
* @brief Identificada por um tipo (char), e responsavel por ter agrupadas todas as alineas de uma dada transformacao, seja ela mudanca de numero, genero, tempo.
* @author Jorge Silva - ei09016
* @author Tiago Mota - ei09068
*
* $Header $
*/
#ifndef RULE_H_
#define RULE_H_
#include <string>
#include <iostream>
#include "alinea.h"
using namespace std;
class Rule {
private:
char tipo;
vector<Alinea> alineas;
public:
Rule(char tipo);
virtual ~Rule();
void addAlinea(string Line);
vector<string> getCombinacoes(const string word) const;
char getTipo() const;
void setTipo(char tipo);
bool operator == (const Rule &r2) const;
bool operator < (const Rule &r2) const;
bool operator > (const Rule &r2) const;
};
#endif /* RULE_H_ */