From bae6192c54533e8da95d8ae1ed4d4eccee28c39a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Dec 2011 10:27:38 -0700 Subject: Getting close to realy running. --- src/command.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/command.h (limited to 'src/command.h') 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 @@ +#ifndef COMMAND_H +#define COMMAND_H + +#include + +class Command +{ +public: + Command(); + virtual ~Command(); + + void addLiteral( const Bu::String &sValue ); + void addParam( const Bu::String &sValue ); + + void setAst( class AstBranch *pAst ); + + void print(); + +private: + class Chunk + { + public: + Chunk( bool bLiteral, const Bu::String &sValue ) : + bLiteral( bLiteral ), sValue( sValue ) + { + } + + bool bLiteral; + Bu::String sValue; + }; + + typedef Bu::List ChunkList; + ChunkList lChunks; + + class AstBranch *pAst; +}; + +#endif -- cgit v1.2.3