Enhancement

- Began the new Context::initialize2, which will offer a different
  rabbit-hole to go down.  This method will instantiate Command
  objects and the new Parser, rather than the monolithic alternative
  dispatch method and command.cpp/report.cpp/custom.cpp files.
This commit is contained in:
Paul Beckingham 2011-03-29 23:38:16 -04:00
parent a994baae75
commit 036aee2a8d
2 changed files with 15 additions and 0 deletions

View file

@ -66,6 +66,20 @@ Context::~Context ()
{
}
////////////////////////////////////////////////////////////////////////////////
void Context::initialize2 (int argc, char** argv)
{
// TODO Capture the args.
// TODO Capture any stdin args.
// TODO Scan for rc:<file> overrides --> apply.
// TODO Combine command line into one string.
// TODO Load relevant rc file.
// TODO Instantiate built-in command objects.
// TODO Instantiate extension command objects.
// TODO Instantiate default command object.
// TODO Chain-of-command pattern dispatch.
}
////////////////////////////////////////////////////////////////////////////////
void Context::initialize (int argc, char** argv)
{

View file

@ -47,6 +47,7 @@ public:
Context& operator= (const Context&);
void initialize (int, char**); // all startup
void initialize2 (int, char**); // all startup
void initialize (); // for reinitializing
int run (); // task classic
int interactive (); // task interactive (not implemented)