#include <Shell.h>
Inherited by TcpShell.
Public Member Functions | |
Shell () | |
constuctor. | |
virtual void | add_command (const std::string name, shell_command_fn *command, void *data, const char *descr, const char *help)=0 |
add a new command to the shell | |
virtual ShellCommand * | get_command (std::string name)=0 |
get the command struct for the correspronding name | |
virtual | ~Shell () |
destructor. |
virtual awds::Shell::~Shell | ( | ) | [inline, virtual] |
destructor.
This will normally never be called. So who cares.
virtual void awds::Shell::add_command | ( | const std::string | name, | |
shell_command_fn * | command, | |||
void * | data, | |||
const char * | descr, | |||
const char * | help | |||
) | [pure virtual] |
add a new command to the shell
name | the name of the command. | |
command | the callback function of the command. | |
data | custom data for the callback function. | |
descr | the short description of the command. | |
help | the long help for the command. |