|
Planeshift
|
Class for storing subcommands for a specific word position. More...
#include <adminmanager.h>
Public Member Functions | |
| AdminCmdSubCommandParser () | |
| initializes subcommands list without any commands. | |
| AdminCmdSubCommandParser (csString commandList) | |
| initializes the subCommands List by splitting the string. | |
| virtual csString | GetHelpMessage () |
| Retrieve help message for the list of subcommands. | |
| virtual csString | GetHelpMessage (const csString &subcommand) |
| Retrieve help message for a specific subcommand. | |
| bool | IsSubCommand (const csString &word) |
| test if a single word is a subcommand. | |
| void | Push (csString subcommand, csString helpmsg) |
| add a new sub command with help text. | |
| virtual | ~AdminCmdSubCommandParser () |
Public Attributes | |
| csHash< csString, csString > | subCommands |
| list of subcommands | |
Class for storing subcommands for a specific word position.
Definition at line 509 of file adminmanager.h.
| AdminCmdSubCommandParser::AdminCmdSubCommandParser | ( | ) | [inline] |
initializes subcommands list without any commands.
Definition at line 516 of file adminmanager.h.
| AdminCmdSubCommandParser::AdminCmdSubCommandParser | ( | csString | commandList | ) |
initializes the subCommands List by splitting the string.
Fast initialization by supplying a string with the commands that are seperated by white spaces.
| commandList | space separated list of commands |
| virtual AdminCmdSubCommandParser::~AdminCmdSubCommandParser | ( | ) | [inline, virtual] |
Definition at line 527 of file adminmanager.h.
| virtual csString AdminCmdSubCommandParser::GetHelpMessage | ( | ) | [virtual] |
Retrieve help message for the list of subcommands.
| virtual csString AdminCmdSubCommandParser::GetHelpMessage | ( | const csString & | subcommand | ) | [virtual] |
Retrieve help message for a specific subcommand.
| bool AdminCmdSubCommandParser::IsSubCommand | ( | const csString & | word | ) |
test if a single word is a subcommand.
| word | single word (no whitespaces) |
| void AdminCmdSubCommandParser::Push | ( | csString | subcommand, |
| csString | helpmsg | ||
| ) |
add a new sub command with help text.
| subcommand | to register |
| helpmsg | help message for the command |
| csHash<csString, csString> AdminCmdSubCommandParser::subCommands |
list of subcommands
Definition at line 512 of file adminmanager.h.
1.7.3