diff options
Diffstat (limited to 'src/rule.h')
-rw-r--r-- | src/rule.h | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/src/rule.h b/src/rule.h deleted file mode 100644 index c6e8336..0000000 --- a/src/rule.h +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | #ifndef RULE_H | ||
2 | #define RULE_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | #include <string> | ||
6 | #include <list> | ||
7 | |||
8 | class Function; | ||
9 | class Perform; | ||
10 | class Build; | ||
11 | |||
12 | typedef std::list<Function *> FunctionList; | ||
13 | typedef std::list<Perform *> PerformList; | ||
14 | typedef std::list<std::string> StringList; | ||
15 | |||
16 | class Rule | ||
17 | { | ||
18 | public: | ||
19 | Rule(); | ||
20 | virtual ~Rule(); | ||
21 | |||
22 | StringList execute( Build &bld, StringList &lInput, PerformList &lPerf, bool bFirstOnly=true ); | ||
23 | |||
24 | void setTarget( const std::string &sTarget ) | ||
25 | { | ||
26 | this->sTarget = sTarget; | ||
27 | } | ||
28 | |||
29 | std::string getName() | ||
30 | { | ||
31 | return sName; | ||
32 | } | ||
33 | |||
34 | void setName( const std::string &sName ) | ||
35 | { | ||
36 | this->sName = sName; | ||
37 | } | ||
38 | |||
39 | FunctionList &getFilterList() | ||
40 | { | ||
41 | return lFilter; | ||
42 | } | ||
43 | |||
44 | PerformList &getPerformList() | ||
45 | { | ||
46 | return lPerform; | ||
47 | } | ||
48 | |||
49 | FunctionList &getMatchesList() | ||
50 | { | ||
51 | return lMatches; | ||
52 | } | ||
53 | |||
54 | StringList &getProducesList() | ||
55 | { | ||
56 | return lProduces; | ||
57 | } | ||
58 | |||
59 | void setAggregate( Function *pAggregate ) | ||
60 | { | ||
61 | this->pAggregate = pAggregate; | ||
62 | } | ||
63 | |||
64 | StringList &getReqStrList() | ||
65 | { | ||
66 | return lReqStrs; | ||
67 | } | ||
68 | |||
69 | FunctionList &getReqFuncList() | ||
70 | { | ||
71 | return lReqFuncs; | ||
72 | } | ||
73 | |||
74 | private: | ||
75 | std::string sName; | ||
76 | FunctionList lMatches; | ||
77 | FunctionList lFilter; | ||
78 | PerformList lPerform; | ||
79 | StringList lProduces; | ||
80 | std::string sTarget; | ||
81 | Function *pAggregate; | ||
82 | StringList lReqStrs; | ||
83 | FunctionList lReqFuncs; | ||
84 | }; | ||
85 | |||
86 | #endif | ||