diff options
Diffstat (limited to 'src/commandset.cpp')
-rw-r--r-- | src/commandset.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/commandset.cpp b/src/commandset.cpp new file mode 100644 index 0000000..ffd58a5 --- /dev/null +++ b/src/commandset.cpp | |||
@@ -0,0 +1,21 @@ | |||
1 | #include "commandset.h" | ||
2 | |||
3 | #include "command.h" | ||
4 | |||
5 | CommandSet::CommandSet() | ||
6 | { | ||
7 | } | ||
8 | |||
9 | CommandSet::~CommandSet() | ||
10 | { | ||
11 | for( CommandList::iterator i = lCommand.begin(); i; i++ ) | ||
12 | { | ||
13 | delete (*i); | ||
14 | } | ||
15 | } | ||
16 | |||
17 | void CommandSet::addCommand( class Command *pCmd ) | ||
18 | { | ||
19 | lCommand.append( pCmd ); | ||
20 | } | ||
21 | |||