diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2012-11-08 22:58:28 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-08 22:58:28 +0000 |
| commit | 52be1ef0d126f09ba943c7afcf367e7d9347f2fd (patch) | |
| tree | fd4b0dd148751c3c6c1b95296c3b82cb86051b83 /src/rule.h | |
| parent | 795d0737fed40d88a7801b451b7750ba90802345 (diff) | |
| download | build-52be1ef0d126f09ba943c7afcf367e7d9347f2fd.tar.gz build-52be1ef0d126f09ba943c7afcf367e7d9347f2fd.tar.bz2 build-52be1ef0d126f09ba943c7afcf367e7d9347f2fd.tar.xz build-52be1ef0d126f09ba943c7afcf367e7d9347f2fd.zip | |
tabconv: it's all spaces now.
Diffstat (limited to '')
| -rw-r--r-- | src/rule.h | 52 |
1 files changed, 26 insertions, 26 deletions
| @@ -6,49 +6,49 @@ | |||
| 6 | 6 | ||
| 7 | class Rule | 7 | class 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 ); |
| 10 | public: | 10 | public: |
| 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 | ||
| 37 | private: | 37 | private: |
| 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 | ||
| 47 | Bu::Formatter &operator<<( Bu::Formatter &f, const Rule &t ); | 47 | Bu::Formatter &operator<<( Bu::Formatter &f, const Rule &t ); |
| 48 | 48 | ||
| 49 | namespace Bu | 49 | namespace 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 |
