Parser Class Reference

#include <Parser.h>


Public Member Functions

 Parser ()
 ~Parser ()
int main (utils::DArray< DString > *)
int main (int argc, char **args)
int main ()
bool processCommand (Command *command, DString *whatIsSaid)

Private Member Functions

CommandgetCommand ()
bool processCommand (Command *command)
 Returns True if the program should quit.
void printHelp ()
 Print out a list of valid command words.
void start ()
bool openFile (DString fileName)
DString getHistoryValue (Command *command)
DString getSwapValue (Command *command)

Private Attributes

CommandWordscommands
Helphelper
utils::DArray< DString > * ans
double * parameters
int numberOfParameters
DString * autoSave
DString * currentDirectory
 The current working directory.
DHashMap< Plane< Double > > * storedStuff
int commandCount


Constructor & Destructor Documentation

Parser::Parser (  ) 

Parser::~Parser (  ) 


Member Function Documentation

Command * Parser::getCommand (  )  [private]

Referenced by start().

DString Parser::getHistoryValue ( Command command  )  [private]

References ans, Command::getCommandWord(), and Command::getWords().

Referenced by start().

DString Parser::getSwapValue ( Command command  )  [private]

References ans, and Command::getWholeCommandString().

Referenced by start().

int Parser::main (  ) 

References DEBUG_PRINT, and start().

Referenced by main().

int Parser::main ( int  argc,
char **  args 
)

References main().

int Parser::main ( utils::DArray< DString > *  args  ) 

bool Parser::openFile ( DString  fileName  )  [private]

void Parser::printHelp (  )  [private]

Print out a list of valid command words.

References commands, David::say(), and CommandWords::showAll().

Referenced by processCommand().

bool Parser::processCommand ( Command command  )  [private]

Returns True if the program should quit.

References processCommand().

bool Parser::processCommand ( Command command,
DString *  whatIsSaid 
)

void Parser::start (  )  [private]


Field Documentation

utils::DArray<DString>* Parser::ans [private]

DString* Parser::autoSave [private]

Referenced by Parser(), processCommand(), and ~Parser().

int Parser::commandCount [private]

Referenced by Parser(), and processCommand().

Referenced by Parser(), printHelp(), and ~Parser().

DString* Parser::currentDirectory [private]

The current working directory.

Referenced by Parser(), processCommand(), and ~Parser().

Help* Parser::helper [private]

Referenced by Parser(), processCommand(), and ~Parser().

Referenced by processCommand().

double* Parser::parameters [private]

Referenced by Parser(), processCommand(), and ~Parser().

DHashMap<Plane<Double> >* Parser::storedStuff [private]

Referenced by main(), Parser(), processCommand(), and ~Parser().


The documentation for this class was generated from the following files:

Generated on Sat Feb 6 13:04:50 2010 by  doxygen 1.5.7.1