summaryrefslogtreecommitdiff
path: root/src/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/command.h b/src/command.h
new file mode 100644
index 0000000..f36fc14
--- /dev/null
+++ b/src/command.h
@@ -0,0 +1,38 @@
1#ifndef COMMAND_H
2#define COMMAND_H
3
4#include <bu/string.h>
5
6class Command
7{
8public:
9 Command();
10 virtual ~Command();
11
12 void addLiteral( const Bu::String &sValue );
13 void addParam( const Bu::String &sValue );
14
15 void setAst( class AstBranch *pAst );
16
17 void print();
18
19private:
20 class Chunk
21 {
22 public:
23 Chunk( bool bLiteral, const Bu::String &sValue ) :
24 bLiteral( bLiteral ), sValue( sValue )
25 {
26 }
27
28 bool bLiteral;
29 Bu::String sValue;
30 };
31
32 typedef Bu::List<Chunk> ChunkList;
33 ChunkList lChunks;
34
35 class AstBranch *pAst;
36};
37
38#endif