#include <cmdline.h>
Public Methods | |
CmdLine () | |
Builds the vector of command objects. | |
virtual | ~CmdLine () |
delete all command objects. | |
int | exec (const char *cmdLine, int argc=0, char **argv=0) |
execute a command line. More... | |
Static Public Methods | |
int | getNextToken (const char *string, const char *delim) |
int | splitString (char *inputString, char **outputArray, unsigned arraySize, const char *delimiters) |
split a string into an array of words. More... |
Definition at line 50 of file cmdline.h.
|
execute a command line. Execute a command. If it's a script, skip comments and replace argument passing. Comments are replaced using \1, \2, etc. \0 is the name of the script.
Definition at line 625 of file cmdline.cpp. References CMD_SCRIPT_DEBUG, debugMessage(), and splitString(). Referenced by ProgramFlashCmd::exec(), and EventSelector::handleInputCommand(). |
|
return the index of the next character which is not in "delim", or -1 if not found. Definition at line 693 of file cmdline.cpp. |
|
split a string into an array of words. Fill an array of char pointer, given an input string and a string of delimiters. In case of overflow, the end of the command line is dropped.
Definition at line 716 of file cmdline.cpp. Referenced by exec(). |