aboutsummaryrefslogtreecommitdiff
path: root/src/rule.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-23 22:09:30 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-23 22:09:30 +0000
commitd2fe7edb2bfea20987a1f69935179fa5fc9f3b37 (patch)
treeee35479f264788bf43b7904f31a528699b53e955 /src/rule.h
parent7a7390337e04d0163b97c1da7bdaa198bacaff72 (diff)
downloadbuild-d2fe7edb2bfea20987a1f69935179fa5fc9f3b37.tar.gz
build-d2fe7edb2bfea20987a1f69935179fa5fc9f3b37.tar.bz2
build-d2fe7edb2bfea20987a1f69935179fa5fc9f3b37.tar.xz
build-d2fe7edb2bfea20987a1f69935179fa5fc9f3b37.zip
Really close...functions are doing their stuff, we have inputs, almost have rules.
Diffstat (limited to '')
-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