Enhancements - Context integration

- Context now gathers messages and footnotes.
- task now calls into the new 1.8.0 code (via Context), then calls
  into the old 1.7.0 code.  Two for the price of one.
This commit is contained in:
Paul Beckingham 2009-06-04 22:14:03 -04:00
parent 024986fe88
commit 54f155f439
4 changed files with 62 additions and 19 deletions

View file

@ -43,12 +43,16 @@ public:
Context& operator= (const Context&); // Assignment operator
~Context (); // Destructor
void initialize (int, char**);
int run ();
int interactive ();
void initialize (int, char**); // all startup
int run (); // task classic
int interactive (); // task interactive (not implemented)
void message (const std::string&); // Message sink
void footnote (const std::string&); // Footnote sink
private:
void loadCorrectConfigFile (int, char**);
void parse ();
public:
Config config;
@ -60,6 +64,8 @@ public:
StringTable stringtable;
private:
std::vector <std::string> messages;
std::vector <std::string> footnotes;
};
#endif