Enhancement - Integration

- Integrated Cmd object.
- Enhanced Context object with dispatch and shadow methods.
- Fixed bug in Context::parse.
- Implemented command parsing.
- Fixed Sequence bug, and unit tests.
This commit is contained in:
Paul Beckingham 2009-06-07 16:00:22 -04:00
parent 190c6b53fc
commit d702ba8f24
7 changed files with 128 additions and 35 deletions

View file

@ -32,6 +32,7 @@
#include "Config.h"
#include "Sequence.h"
#include "Subst.h"
#include "Cmd.h"
#include "T2.h"
#include "TDB2.h"
#include "StringTable.h"
@ -47,6 +48,8 @@ public:
void initialize (int, char**); // all startup
int run (); // task classic
int interactive (); // task interactive (not implemented)
void dispatch (); // command handler dispatch
void shadow (); // shadow file update
void message (const std::string&); // Message sink
void footnote (const std::string&); // Footnote sink
@ -64,8 +67,9 @@ public:
T2 task;
TDB2 tdb;
StringTable stringtable;
std::string program;
std::vector <std::string> args;
std::string command;
Cmd cmd;
private:
std::vector <std::string> messages;