diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-23 03:22:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-23 03:22:03 +0000 |
commit | 7a7390337e04d0163b97c1da7bdaa198bacaff72 (patch) | |
tree | 019eb3f455b0e8b35be9ae4560da319f377ea14e /src/target.h | |
parent | f5cf5725026ecb2fa63d729fb6745b4da15e69d8 (diff) | |
download | build-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.h | 33 |
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 | |||
9 | typedef std::list<std::string> StringList; | ||
6 | 10 | ||
7 | class Target | 11 | class Target |
8 | { | 12 | { |
@@ -10,8 +14,35 @@ public: | |||
10 | Target(); | 14 | Target(); |
11 | virtual ~Target(); | 15 | virtual ~Target(); |
12 | 16 | ||
13 | private: | 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 | |||
42 | private: | ||
43 | std::string sName; | ||
44 | std::string sRule; | ||
45 | StringList lInput; | ||
15 | }; | 46 | }; |
16 | 47 | ||
17 | #endif | 48 | #endif |