aboutsummaryrefslogtreecommitdiff
path: root/src/action.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/action.h')
-rw-r--r--src/action.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/action.h b/src/action.h
deleted file mode 100644
index a5555a3..0000000
--- a/src/action.h
+++ /dev/null
@@ -1,45 +0,0 @@
1#ifndef ACTION_H
2#define ACTION_H
3
4#include <list>
5#include "staticstring.h"
6
7class Command;
8class Builder;
9
10class Action
11{
12public:
13 Action();
14 Action( const char *sName );
15 virtual ~Action();
16
17 void add( Command *pCmd );
18 void add( int nType, const char *sCmd );
19
20 const char *getName()
21 {
22 return sName;
23 }
24 bool isDefault()
25 {
26 return bDefault;
27 }
28
29 int getNumCommands()
30 {
31 return lCommand.size();
32 }
33
34 void debug();
35
36 void execute( class Builder &bld );
37
38private:
39 bool bDefault;
40 StaticString sName;
41 std::list<Command *> lCommand;
42 std::list<std::pair<int, std::string> > lRegExCommand;
43};
44
45#endif