diff options
Diffstat (limited to 'src/rule.h')
-rw-r--r-- | src/rule.h | 31 |
1 files changed, 30 insertions, 1 deletions
@@ -2,7 +2,14 @@ | |||
2 | #define RULE_H | 2 | #define RULE_H |
3 | 3 | ||
4 | #include <stdint.h> | 4 | #include <stdint.h> |
5 | #include <string> | ||
6 | #include <list> | ||
5 | 7 | ||
8 | class Function; | ||
9 | class Perform; | ||
10 | |||
11 | typedef std::list<Function *> FunctionList; | ||
12 | typedef std::list<Perform *> PerformList; | ||
6 | 13 | ||
7 | class Rule | 14 | class Rule |
8 | { | 15 | { |
@@ -10,8 +17,30 @@ public: | |||
10 | Rule(); | 17 | Rule(); |
11 | virtual ~Rule(); | 18 | virtual ~Rule(); |
12 | 19 | ||
13 | private: | 20 | std::string getName() |
21 | { | ||
22 | return sName; | ||
23 | } | ||
24 | |||
25 | void setName( const std::string &sName ) | ||
26 | { | ||
27 | this->sName = sName; | ||
28 | } | ||
14 | 29 | ||
30 | FunctionList &getFunctionList() | ||
31 | { | ||
32 | return lFilter; | ||
33 | } | ||
34 | |||
35 | PerformList &getPerformList() | ||
36 | { | ||
37 | return lPerform; | ||
38 | } | ||
39 | |||
40 | private: | ||
41 | std::string sName; | ||
42 | FunctionList lFilter; | ||
43 | PerformList lPerform; | ||
15 | }; | 44 | }; |
16 | 45 | ||
17 | #endif | 46 | #endif |