diff options
Diffstat (limited to 'src/target.h')
-rw-r--r-- | src/target.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/target.h b/src/target.h deleted file mode 100644 index f51e0e0..0000000 --- a/src/target.h +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | #ifndef TARGET_H | ||
2 | #define TARGET_H | ||
3 | |||
4 | #include <stdint.h> | ||
5 | |||
6 | #include <string> | ||
7 | #include <list> | ||
8 | |||
9 | #include "action.h" | ||
10 | |||
11 | typedef std::list<std::string> StringList; | ||
12 | |||
13 | class Build; | ||
14 | |||
15 | class Target | ||
16 | { | ||
17 | public: | ||
18 | Target(); | ||
19 | virtual ~Target(); | ||
20 | |||
21 | void run( Action::eAction nAct, Build &bld ); | ||
22 | virtual void check( Build &bld ) = 0; | ||
23 | virtual void clean( Build &bld ) = 0; | ||
24 | |||
25 | void setName( const std::string &sName ) | ||
26 | { | ||
27 | this->sName = sName; | ||
28 | } | ||
29 | |||
30 | std::string getName() | ||
31 | { | ||
32 | return sName; | ||
33 | } | ||
34 | |||
35 | void setRule( const std::string &sRule ) | ||
36 | { | ||
37 | this->sRule = sRule; | ||
38 | } | ||
39 | |||
40 | std::string getRule() | ||
41 | { | ||
42 | return sRule; | ||
43 | } | ||
44 | |||
45 | StringList &getInput() | ||
46 | { | ||
47 | return lInput; | ||
48 | } | ||
49 | |||
50 | bool wasRun() | ||
51 | { | ||
52 | return bRun; | ||
53 | } | ||
54 | |||
55 | |||
56 | private: | ||
57 | std::string sName; | ||
58 | std::string sRule; | ||
59 | StringList lInput; | ||
60 | bool bRun; | ||
61 | }; | ||
62 | |||
63 | #endif | ||