aboutsummaryrefslogtreecommitdiff
path: root/src/action.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-07 00:45:14 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-07 00:45:14 +0000
commitfe5de4801bfe7926e116585e2f71399cb664dfb2 (patch)
tree9c8bda69f30d309bf4a4e583749d9ac32fd91731 /src/action.h
parent375112224567de0b2f3666cef13b1c5832f1ed6f (diff)
downloadbuild-fe5de4801bfe7926e116585e2f71399cb664dfb2.tar.gz
build-fe5de4801bfe7926e116585e2f71399cb664dfb2.tar.bz2
build-fe5de4801bfe7926e116585e2f71399cb664dfb2.tar.xz
build-fe5de4801bfe7926e116585e2f71399cb664dfb2.zip
Really getting there, the rest of the work should be in the build class and
related build-time components!
Diffstat (limited to '')
-rw-r--r--src/action.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/action.h b/src/action.h
index 4ec3b4a..4f9a88e 100644
--- a/src/action.h
+++ b/src/action.h
@@ -3,6 +3,9 @@
3 3
4#include <stdint.h> 4#include <stdint.h>
5 5
6#include <string>
7#include <list>
8
6class Action 9class Action
7{ 10{
8public: 11public:
@@ -15,7 +18,39 @@ public:
15 Action(); 18 Action();
16 virtual ~Action(); 19 virtual ~Action();
17 20
21 typedef struct Cmd
22 {
23 Cmd( eAction act, const std::string &sWhat ) :
24 act( act ), sWhat( sWhat )
25 {}
26 eAction act;
27 std::string sWhat;
28 } Cmd;
29
30 void addCommand( eAction act, const std::string &sWhat );
31
32 void begin();
33 bool isEnded();
34 void next();
35
36 eAction getAct();
37 std::string getWhat();
38
39 void setName( const std::string &sName )
40 {
41 this->sName = sName;
42 }
43
44 std::string getName()
45 {
46 return sName;
47 }
48
18private: 49private:
50 typedef std::list<Cmd> CmdList;
51 CmdList lCmds;
52 CmdList::iterator i;
53 std::string sName;
19 54
20}; 55};
21 56