// HelpCommand.h // Kevin Karplus // 23 Feb 1996 // This file contains a generic "help" command suitable for including // in an interactive system based on the Command class. // // To make sure it is linked in from the library, call // AddHelpCommandTable() from main (or other initialization function). // // You can also add an arbitrary function to interpret the help command, // in case the first word doesn't match any of tables. // Just set UnknownHelpFunction to point to an int function that // takes (istream&, const char*, ostream&). void AddHelpCommandTable(const NameToPtr *table=0, const char* name=0); // Add a NameToPtr table to the list of tables searched by the Help command. // (with no parameters, the Command::command_table() is added, // with name "command"). extern int (*UnknownHelpFunction)(istream &in, const char* word, ostream&log_file);