diff options
Diffstat (limited to '')
-rw-r--r-- | src/target.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/target.cpp b/src/target.cpp deleted file mode 100644 index 8f4cc4b..0000000 --- a/src/target.cpp +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | #include "target.h" | ||
2 | |||
3 | Target::Target( const char *sName ) : | ||
4 | sName( sName ) | ||
5 | { | ||
6 | } | ||
7 | |||
8 | Target::~Target() | ||
9 | { | ||
10 | } | ||
11 | |||
12 | void Target::setRule( const char *sRule ) | ||
13 | { | ||
14 | this->sRule = sRule; | ||
15 | } | ||
16 | |||
17 | void Target::debug() | ||
18 | { | ||
19 | printf(" %s:\n Rule: %s\n", | ||
20 | sName.getString(), | ||
21 | sRule.getString() | ||
22 | ); | ||
23 | printf(" Input list:\n"); | ||
24 | for( std::list<std::string>::iterator i = lInput.begin(); | ||
25 | i != lInput.end(); i++ ) | ||
26 | { | ||
27 | printf(" %s\n", (*i).c_str() ); | ||
28 | } | ||
29 | printf(" Output list:\n"); | ||
30 | for( std::list<std::string>::iterator i = lOutput.begin(); | ||
31 | i != lOutput.end(); i++ ) | ||
32 | { | ||
33 | printf(" %s\n", (*i).c_str() ); | ||
34 | } | ||
35 | } | ||
36 | |||
37 | void Target::addInput( const char *sInput ) | ||
38 | { | ||
39 | lInput.push_back( sInput ); | ||
40 | } | ||
41 | |||
42 | void Target::addOutput( const char *sOutput ) | ||
43 | { | ||
44 | lOutput.push_back( sOutput ); | ||
45 | } | ||
46 | |||