|
LRAUV
revA
|
#include <Command.h>

Public Member Functions | |
| CommandSyntax (const char *help, void(*syntaxCall)(ParsedCommand *, int), const int mode) | |
| void | addArg (CommandArg *arg) |
| CommandArg * | getArg (int index) const |
| int | getRequiredArgSize (unsigned int currentArgs) |
| int | getArgCount () const |
| void | call (ParsedCommand *parsedCommand) |
| CommandSyntax * | getAltSyntax () |
| void | setAltSyntax (CommandSyntax *altSyntax) |
| void | help (const char *keyword, FILE *out) const |
Protected Attributes | |
| FlexArray< CommandArg * > | args_ |
| int | argCount_ |
| const char * | help_ |
| void(* | syntaxCall_ )(ParsedCommand *, int) |
| int | mode_ |
| CommandSyntax * | altSyntax_ |
Private Member Functions | |
| CommandSyntax (const CommandSyntax &old) | |
|
inline |
|
private |
|
inline |
References argCount_, args_, and FlexArray< T >::push().
Referenced by Command::addArg().
|
inline |
References mode_, and syntaxCall_.
Referenced by ParsedCommand::execute().
|
inline |
References altSyntax_.
Referenced by ParsedCommand::findArg().
|
inline |
References args_, and FlexArray< T >::get().
Referenced by CommandLine::commandShowDependencies(), ParsedCommand::findArg(), CommandLine_Test::testParse(), and ParsedCommand::toString().
|
inline |
References argCount_.
Referenced by ParsedCommand::findArg(), ParsedCommand::parseBufferEnd(), and CommandLine_Test::testParse().
|
inline |
References args_, FlexArray< T >::get(), CommandArg::getRequired(), REQUIRED, REQUIRED_AFTER_PREVIOUS, and FlexArrayBase::size().
Referenced by ParsedCommand::implySyntax(), and ParsedCommand::syntaxOk().
|
inline |
References argCount_, args_, FlexArray< T >::get(), CommandArg::getRequired(), CommandArg::help(), help_, NOT_REQUIRED, and REQUIRED_AFTER_PREVIOUS.
Referenced by Command::help().
|
inline |
References altSyntax_.
Referenced by ParsedCommand::findArg(), and ParsedCommand::implySyntax().
|
protected |
Referenced by getAltSyntax(), and setAltSyntax().
|
protected |
Referenced by addArg(), getArgCount(), and help().
|
protected |
Referenced by addArg(), getArg(), getRequiredArgSize(), and help().
|
protected |
Referenced by help().
|
protected |
Referenced by call().
|
protected |
Referenced by call().