diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-07-30 09:07:20 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-07-30 09:07:20 +0000 |
commit | 113fc467a7170a8a564049c64d1036dd10e6abac (patch) | |
tree | e4719817a3e0175a9f7cbd4e07fc994ff41f8ef6 /src/action.h | |
parent | 900976d2d74e0de57858b265c2ef0d17a29e921a (diff) | |
download | build-113fc467a7170a8a564049c64d1036dd10e6abac.tar.gz build-113fc467a7170a8a564049c64d1036dd10e6abac.tar.bz2 build-113fc467a7170a8a564049c64d1036dd10e6abac.tar.xz build-113fc467a7170a8a564049c64d1036dd10e6abac.zip |
It's starting to look pretty good, just trying to figure out how to get through
everything that needs to be made modular and general.
Diffstat (limited to '')
-rw-r--r-- | src/action.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/action.h b/src/action.h new file mode 100644 index 0000000..12c2cc4 --- /dev/null +++ b/src/action.h | |||
@@ -0,0 +1,35 @@ | |||
1 | #ifndef ACTION_H | ||
2 | #define ACTION_H | ||
3 | |||
4 | #include <list> | ||
5 | #include "staticstring.h" | ||
6 | |||
7 | class Command; | ||
8 | |||
9 | class Action | ||
10 | { | ||
11 | public: | ||
12 | Action(); | ||
13 | Action( const char *sName ); | ||
14 | virtual ~Action(); | ||
15 | |||
16 | void add( Command *pCmd ); | ||
17 | |||
18 | const char *getName() | ||
19 | { | ||
20 | return sName; | ||
21 | } | ||
22 | bool isDefault() | ||
23 | { | ||
24 | return bDefault; | ||
25 | } | ||
26 | |||
27 | void debug(); | ||
28 | |||
29 | private: | ||
30 | bool bDefault; | ||
31 | StaticString sName; | ||
32 | std::list<Command *> lCommand; | ||
33 | }; | ||
34 | |||
35 | #endif | ||