diff options
Diffstat (limited to 'src/rule.h')
-rw-r--r-- | src/rule.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,6 +1,8 @@ | |||
1 | #ifndef RULE_H | 1 | #ifndef RULE_H |
2 | #define RULE_H | 2 | #define RULE_H |
3 | 3 | ||
4 | #include <list> | ||
5 | #include <string> | ||
4 | #include <stdint.h> | 6 | #include <stdint.h> |
5 | #include <regex.h> | 7 | #include <regex.h> |
6 | #include "staticstring.h" | 8 | #include "staticstring.h" |
@@ -30,13 +32,15 @@ public: | |||
30 | 32 | ||
31 | void debug(); | 33 | void debug(); |
32 | 34 | ||
33 | void setProduces( const char *sProduces ); | 35 | void addProduces( const char *sProduces ); |
34 | void setMatches( Matches how, const char *sWhat ); | 36 | void setMatches( Matches how, const char *sWhat ); |
35 | void setPerforms( Perform pwhat, const char *sPerfCmd ); | 37 | void setPerforms( Perform pwhat, const char *sPerfCmd ); |
36 | 38 | ||
39 | std::list<std::string> execute( class Builder &bld, std::list<std::string> lInput ); | ||
40 | |||
37 | private: | 41 | private: |
38 | StaticString sName; | 42 | StaticString sName; |
39 | StaticString sProduces; | 43 | std::list<std::string> lProduces; |
40 | 44 | ||
41 | Matches mHow; | 45 | Matches mHow; |
42 | StaticString sWhat; | 46 | StaticString sWhat; |