#include <Command.h>
Inheritance diagram for Command::
Public Methods | |
Command () | |
Create and initialize the command. More... | |
virtual | ~Command () |
virtual string | getCommandString ()=0 |
virtual void | run (std::ostream &out)=0 |
virtual void | getHtmlInterface (std::ostream &out) |
Return a default HTML interface. More... | |
string | getArg (int index) |
Return the arg at the index specified. More... | |
void | setArg (int index, string value) |
This function assumes you will be putting in the arguments contiguously. More... | |
void | clear () |
Clear the argument list. More... | |
Protected Methods | |
virtual void | getHelp (std::ostream &out) |
Return a default help string. More... | |
void | beginUl (std::ostream &out) |
void | endUl (std::ostream &out) |
void | preformatting (std::ostream &out) |
void | setNewlines (bool value) |
void | postformatting (std::ostream &out) |
void | beginForm (std::ostream &out) |
void | beginForm (std::ostream &out, string action, string method) |
void | endForm (std::ostream &out) |
void | formInput (std::ostream &out, string type, string name, string value) |
void | generateHtmlCmd (std::ostream &out, string command, string description) |
void | generateHtmlCmd (std::ostream &out, string description) |
Create the HTML needed to call a command without any subcommands. More... | |
void | generateHtmlSubcmd (std::ostream &out, string subcmd, string description) |
Print a HTML subcmd that takes no arguments to the stream provided. More... | |
void | generateHtmlSubcmdArg1 (std::ostream &out, string subcmd, string description, string buttonString) |
Create an HTML form so a subcommand can take an argument. More... | |
void | generateHtmlSubcmdArg1 (std::ostream &out, string subcmd, string description, string buttonString, string value) |
Create an HTML form so a subcommand can take an argument. More... | |
void | generateHtmlSubcmdArg2 (std::ostream &out, string subcmd, string description1, string description2, string buttonString) |
Create an HTML form so a subcommand can take two arguments. More... | |
void | generateHtmlSubcmdArg3 (std::ostream &out, string subcmd, string description1, string description2, string description3, string buttonString) |
Create an HTML form so a subcommand can take three arguments. More... | |
void | generateHtmlSubcmdArg4 (std::ostream &out, string subcmd, string description1, string description2, string description3, string description4, string buttonString) |
Create an HTML form so a subcommand can take four arguments. More... | |
void | generateHtmlCheckbox (std::ostream &out, string description, string value, bool isChecked) |
Create a checkbox as a list item. More... | |
Protected Attributes | |
string | m_args [MAX_COMMAND_ARGS] |
string | m_output |
int | m_numArgs |
bool | m_ul |
bool | m_newlines |
|
Create and initialize the command.
Definition at line 6 of file Command.cpp. |
|
|
|
Definition at line 256 of file Command.cpp. |
|
Definition at line 250 of file Command.cpp. Referenced by NodeManagerCommand::displayNode(), ConnectionManagerCommand::displayNode(), generateHtmlSubcmdArg1(), generateHtmlSubcmdArg2(), generateHtmlSubcmdArg3(), and generateHtmlSubcmdArg4().
|
|
Definition at line 57 of file Command.cpp. |
|
Clear the argument list.
Definition at line 40 of file Command.cpp. Referenced by CommandProcessor::matchCommand().
|
|
Definition at line 262 of file Command.cpp. Referenced by NodeManagerCommand::displayNode(), ConnectionManagerCommand::displayNode(), generateHtmlSubcmdArg1(), generateHtmlSubcmdArg2(), generateHtmlSubcmdArg3(), and generateHtmlSubcmdArg4().
|
|
Definition at line 64 of file Command.cpp. |
|
Definition at line 268 of file Command.cpp. Referenced by NodeManagerCommand::displayNode(), ConnectionManagerCommand::displayNode(), generateHtmlSubcmdArg1(), generateHtmlSubcmdArg2(), generateHtmlSubcmdArg3(), and generateHtmlSubcmdArg4().
|
|
Create a checkbox as a list item. This assumes that you are in the process of generating a form.
Definition at line 241 of file Command.cpp. Referenced by BasicConfigurationCommand::getHtmlInterface().
|
|
Create the HTML needed to call a command without any subcommands. Usually used for help. Definition at line 113 of file Command.cpp. |
|
Definition at line 102 of file Command.cpp. Referenced by generateHtmlCmd().
|
|
Print a HTML subcmd that takes no arguments to the stream provided.
Definition at line 122 of file Command.cpp. |
|
Create an HTML form so a subcommand can take an argument.
Definition at line 142 of file Command.cpp. |
|
Create an HTML form so a subcommand can take an argument.
Definition at line 133 of file Command.cpp. Referenced by AdvancedConfigurationCommand::getHtmlInterface().
|
|
Create an HTML form so a subcommand can take two arguments.
Definition at line 160 of file Command.cpp. |
|
Create an HTML form so a subcommand can take three arguments.
Definition at line 180 of file Command.cpp. |
|
Create an HTML form so a subcommand can take four arguments.
Definition at line 207 of file Command.cpp. |
|
Return the arg at the index specified.
Definition at line 31 of file Command.cpp. Referenced by UserConfiguration::setNode().
|
|
|
Return a default help string.
Reimplemented in AdvancedConfigurationCommand, CatcherCommand, CertCommand, ConfigureCommand, DesCommand, HttpTestProcessorCommand, LinkLayerCommand, LiveBroadcastTableCommand, NetworkLayerCommand, NpPacketCommand, RsaCommand, SarCommand, ServiceEntryCommand, ServiceTableCommand, SocketAddressCommand, ThreadMessageQueueCommand, TransportLayerCommand, and VirtualCircuitTableCommand. Definition at line 51 of file Command.cpp. |
|
|
Definition at line 85 of file Command.cpp. Referenced by generateHtmlCheckbox(), generateHtmlCmd(), generateHtmlSubcmd(), generateHtmlSubcmdArg1(), generateHtmlSubcmdArg2(), generateHtmlSubcmdArg3(), and generateHtmlSubcmdArg4().
|
|
Definition at line 71 of file Command.cpp. Referenced by generateHtmlCheckbox(), generateHtmlCmd(), generateHtmlSubcmd(), generateHtmlSubcmdArg1(), generateHtmlSubcmdArg2(), generateHtmlSubcmdArg3(), and generateHtmlSubcmdArg4().
|
|
|
This function assumes you will be putting in the arguments contiguously.
Definition at line 17 of file Command.cpp. Referenced by ProxyParser::parse(), and HttpTestInterfaceParser::parse().
|
|
Definition at line 79 of file Command.cpp. |
|
|
|
|
|
|
|
|
|
|