rshell  1.2
Command_List Class Reference
Inheritance diagram for Command_List:
Command_Element

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_Elementcommands
 
string input
 

Constructor & Destructor Documentation

Command_List::Command_List ( string  str)

Constructor.

Contains exactly the string used to instantiate the list

Parameters
sinput string to be parsed

The constructor stores 's' to 'this->input' and then passes it to the parsing function Parse_Command_Sets

Member Function Documentation

int Command_List::execute ( )
virtual

Recursively calls execute on all commands/command_sets.

Returns
exit code

Recursively executes all Command_Sets and Commands in the linked list starting at root_command

Implements Command_Element.

string Command_List::str ( )
virtual

Returns a string representing a formatted version of the command line user input.

Returns
string representing the command line data structure

Recursively calls the str() function on all Command_Sets in the linked list beginning at root_command

Implements Command_Element.

Member Data Documentation

string Command_List::input
protected

Pointer to top command_element


The documentation for this class was generated from the following files: