diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 10:27:38 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 10:27:38 -0700 |
commit | bae6192c54533e8da95d8ae1ed4d4eccee28c39a (patch) | |
tree | f27b03b518894420992ad1a3ed3ee1a07935ca4b /src/command.h | |
parent | 550d4f13ace49e3d442e43d46cd066f174709400 (diff) | |
download | stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.gz stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.bz2 stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.tar.xz stage-bae6192c54533e8da95d8ae1ed4d4eccee28c39a.zip |
Getting close to realy running.
Diffstat (limited to 'src/command.h')
-rw-r--r-- | src/command.h | 38 |
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 | |||
6 | class Command | ||
7 | { | ||
8 | public: | ||
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 | |||
19 | private: | ||
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 | ||