rshell
1.2
|
Public Member Functions | |
Command_List (string s) | |
Constructor. More... | |
int | execute () |
Recursively calls execute on all commands/command_sets. More... | |
string | str () |
Returns a string representing a formatted version of the command line user input. More... | |
Protected Attributes | |
Command_Element * | commands |
string | input |
Command_List::Command_List | ( | string | str | ) |
Constructor.
Contains exactly the string used to instantiate the list
s | input string to be parsed |
The constructor stores 's' to 'this->input' and then passes it to the parsing function Parse_Command_Sets
|
virtual |
Recursively calls execute on all commands/command_sets.
Recursively executes all Command_Sets and Commands in the linked list starting at root_command
Implements Command_Element.
|
virtual |
Returns a string representing a formatted version of the command line user input.
Recursively calls the str() function on all Command_Sets in the linked list beginning at root_command
Implements Command_Element.
|
protected |
Pointer to top command_element