aboutsummaryrefslogtreecommitdiff
path: root/src/rule.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.h')
-rw-r--r--src/rule.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/rule.h b/src/rule.h
index d8accf0..5e12a20 100644
--- a/src/rule.h
+++ b/src/rule.h
@@ -6,49 +6,49 @@
6 6
7class Rule 7class Rule
8{ 8{
9 friend Bu::Formatter &operator<<( Bu::Formatter &f, const Rule &t ); 9 friend Bu::Formatter &operator<<( Bu::Formatter &f, const Rule &t );
10public: 10public:
11 Rule( const Bu::String &sName ); 11 Rule( const Bu::String &sName );
12 virtual ~Rule(); 12 virtual ~Rule();
13 13
14 const Bu::String &getName() const; 14 const Bu::String &getName() const;
15 15
16 void setInput( const AstBranch *pNewInput ); 16 void setInput( const AstBranch *pNewInput );
17 const AstBranch *getInput() const; 17 const AstBranch *getInput() const;
18 18
19 bool hasOutputs() const; 19 bool hasOutputs() const;
20 20
21 void addOutput( const AstBranch *pNewOutput ); 21 void addOutput( const AstBranch *pNewOutput );
22 void addProfile( const AstBranch *pProfile ); 22 void addProfile( const AstBranch *pProfile );
23 23
24 void prepTarget( class Target *pTarget ); 24 void prepTarget( class Target *pTarget );
25 class Target *createTarget( class Runner &r, const Bu::String &sInput, 25 class Target *createTarget( class Runner &r, const Bu::String &sInput,
26 class Target *pParent ); 26 class Target *pParent );
27 bool ruleMatches( class Runner &r, const Bu::String &sInput ); 27 bool ruleMatches( class Runner &r, const Bu::String &sInput );
28 28
29 void addTag( const Bu::String &sTag ); 29 void addTag( const Bu::String &sTag );
30 const StrList &getTagList() const; 30 const StrList &getTagList() const;
31 31
32 void setDisplay( const Bu::String &sStr ); 32 void setDisplay( const Bu::String &sStr );
33 const Bu::String &getDisplay() const; 33 const Bu::String &getDisplay() const;
34 34
35 void addRequires( const AstBranch *pBr ); 35 void addRequires( const AstBranch *pBr );
36 36
37private: 37private:
38 Bu::String sName; 38 Bu::String sName;
39 Bu::String sDisplay; 39 Bu::String sDisplay;
40 const AstBranch *pInput; 40 const AstBranch *pInput;
41 AstBranchList lOutput; 41 AstBranchList lOutput;
42 ProfileHash hProfiles; 42 ProfileHash hProfiles;
43 StrList lsTags; 43 StrList lsTags;
44 AstBranchList lRequires; 44 AstBranchList lRequires;
45}; 45};
46 46
47Bu::Formatter &operator<<( Bu::Formatter &f, const Rule &t ); 47Bu::Formatter &operator<<( Bu::Formatter &f, const Rule &t );
48 48
49namespace Bu 49namespace Bu
50{ 50{
51 template<> Bu::Formatter &operator<< <Rule>( Bu::Formatter &f, const Rule *t ); 51 template<> Bu::Formatter &operator<< <Rule>( Bu::Formatter &f, const Rule *t );
52}; 52};
53 53
54#endif 54#endif