aboutsummaryrefslogtreecommitdiff
path: root/src/target.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-23 03:22:03 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-23 03:22:03 +0000
commit7a7390337e04d0163b97c1da7bdaa198bacaff72 (patch)
tree019eb3f455b0e8b35be9ae4560da319f377ea14e /src/target.h
parentf5cf5725026ecb2fa63d729fb6745b4da15e69d8 (diff)
downloadbuild-7a7390337e04d0163b97c1da7bdaa198bacaff72.tar.gz
build-7a7390337e04d0163b97c1da7bdaa198bacaff72.tar.bz2
build-7a7390337e04d0163b97c1da7bdaa198bacaff72.tar.xz
build-7a7390337e04d0163b97c1da7bdaa198bacaff72.zip
Loads more stuff...it's nearly working now.
Diffstat (limited to '')
-rw-r--r--src/target.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/target.h b/src/target.h
index b7bee83..75fcb50 100644
--- a/src/target.h
+++ b/src/target.h
@@ -3,6 +3,10 @@
3 3
4#include <stdint.h> 4#include <stdint.h>
5 5
6#include <string>
7#include <list>
8
9typedef std::list<std::string> StringList;
6 10
7class Target 11class Target
8{ 12{
@@ -10,8 +14,35 @@ public:
10 Target(); 14 Target();
11 virtual ~Target(); 15 virtual ~Target();
12 16
13private: 17 void setName( const std::string &sName )
18 {
19 this->sName = sName;
20 }
21
22 std::string getName()
23 {
24 return sName;
25 }
26
27 void setRule( const std::string &sRule )
28 {
29 this->sRule = sRule;
30 }
14 31
32 std::string getRule()
33 {
34 return sRule;
35 }
36
37 StringList &getInput()
38 {
39 return lInput;
40 }
41
42private:
43 std::string sName;
44 std::string sRule;
45 StringList lInput;
15}; 46};
16 47
17#endif 48#endif