aboutsummaryrefslogtreecommitdiff
path: root/src/rule.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.h')
-rw-r--r--src/rule.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/rule.h b/src/rule.h
index 065ab9e..ff251ca 100644
--- a/src/rule.h
+++ b/src/rule.h
@@ -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
8class Function;
9class Perform;
10
11typedef std::list<Function *> FunctionList;
12typedef std::list<Perform *> PerformList;
6 13
7class Rule 14class Rule
8{ 15{
@@ -10,8 +17,30 @@ public:
10 Rule(); 17 Rule();
11 virtual ~Rule(); 18 virtual ~Rule();
12 19
13private: 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
40private:
41 std::string sName;
42 FunctionList lFilter;
43 PerformList lPerform;
15}; 44};
16 45
17#endif 46#endif