Next: Virtual member functions
Up: UIText
Previous: Internal data structures
- int num_commands(void) - the number of words which this
object understands as the first word in a command.
- char *word(int) - the Nth word that this object understands
as the first word in a command.
- void add_command(char *, TextCallback *) - adds a new word
to the UIText vocabulary, and registers the given function as the
callback for that word. If the word is already known, this does nothing.
- int process_command(int argc, char **argv) - given a tokenized
text command (one that has been broken up into `argc' individual words, with
the words in the `argv' array), this routine checks the first word to see
if it is understood, and calls the proper callback function or prints an
error message.
- void read_from_file(char *) - instructs this object to read
text commands from the given file until the end-of-file is reached.
- void wait(float) - instructs this object to wait for the given
number of seconds before attempting to read in the next text command.
- int echo(void) - returns the current echoing status.
- void echo(int yn) - turns on/off echoing of text commands.
Justin Gullingsrud
Tue Apr 6 09:26:48 CDT 1999