diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-08-23 22:09:30 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-23 22:09:30 +0000 |
| commit | d2fe7edb2bfea20987a1f69935179fa5fc9f3b37 (patch) | |
| tree | ee35479f264788bf43b7904f31a528699b53e955 /src/rule.h | |
| parent | 7a7390337e04d0163b97c1da7bdaa198bacaff72 (diff) | |
| download | build-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.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 |
