Next: Method of use
Up: CommandQueue
Previous: Internal data structures
- int do_execute(Command *) - executes the given command,
echoing it to the log file if necessary and informing all the
UIObjects. This will NOT delete the Command; this routine
is called by other routines in CommandQueue.
- void delete_current(void) - deletes the command which
is at the top of the queue, and moves all the other commands up. This
is called by `execute' after the command has been run.
- int logging(void) - return TRUE if logging of commands
is turned on.
- void log_on(char *) - turns on logging of commands, to the
given file.
- void log_off(void) - turns off logging, closes the open
log file if necessary.
- int num(void) - return number of commands in the queue.
- int append(Command *) - puts the given command instance
at the end of the queue. This will not execute it; commands are not
executed until one of the following three routines are called. This
returns TRUE if the command could be added.
- int execute(UIList *UIL = NULL) - executes just the first
command in the queue, by calling do_execute and then
delete_command. If a particular UIList is given, that will
be used, otherwise the internal one will be used. This will definitel
delete the command when it is done. Returns the success code of the
command, or FALSE if not command is available.
- void execute_all(UIList *UIL = NULL) - just calls
execute until the queue is empty.
- int runcommand(Command *) - this routine executes the
given command, but without adding it to the queue. It should
be used when you definitely know that a command should be done
immediately, and can be done out-of-order with respect to the other
commands which might be in the queue. When the command is done,
it is deleted. This returns the success code of the command.
Next: Method of use
Up: CommandQueue
Previous: Internal data structures
Justin Gullingsrud
Tue Apr 6 09:26:48 CDT 1999