8 * Created by Pat Schloss on 8/15/08.
9 * Copyright 2008 Patrick D. Schloss. All rights reserved.
16 #include "globaldata.hpp"
17 #include "commandoptionparser.hpp"
18 #include "command.hpp"
19 #include "commandfactory.hpp"
27 virtual bool getInput() = 0;
28 virtual string getCommand();
29 vector<string> getOptions() { return options; }
31 vector<string> options;
32 CommandFactory* cFactory;
37 class BatchEngine : public Engine {
39 BatchEngine(string, string);
41 virtual bool getInput();
44 GlobalData* globaldata;
45 ifstream inputBatchFile;
51 class InteractEngine : public Engine {
53 InteractEngine(string);
55 virtual bool getInput();
57 GlobalData* globaldata;
61 class ScriptEngine : public Engine {
63 ScriptEngine(string, string);
65 virtual bool getInput();
68 GlobalData* globaldata;
69 string listOfCommands;
70 string getNextCommand(string&);