|
LRAUV
revA
|
#include <Command.h>

Public Member Functions | |
| Command (const char *keyword, const char *description, bool advanced) | |
| Command & | addSyntax (const char *syntaxHelp, void(*syntaxCall)(ParsedCommand *, int), const int mode=0) |
| Command & | addArg (CommandArg *arg) |
| Command & | addArg (const char *keyword, const RequiredType required=REQUIRED) |
| Command & | addArg (const CommandArgType argType, const RequiredType required=REQUIRED, const char *altName=NULL) |
| const char * | getKeyword () |
| const int | getKeywordLen () |
| CommandSyntax * | getSyntax (int index) |
| int | getSyntaxCount () |
| void | help (bool full, FILE *out) const |
Protected Attributes | |
| FlexArray< CommandSyntax * > | syntaxes_ |
| int | syntaxCount_ |
| const char * | keyword_ |
| const char * | description_ |
| bool | advanced_ |
| int | keywordLen_ |
Private Member Functions | |
| Command (const Command &old) | |
|
inline |
|
private |
|
inline |
References CommandSyntax::addArg(), FlexArray< T >::peek(), and syntaxes_.
Referenced by addArg(), and CommandLine::CommandLine().
|
inline |
References addArg().
|
inline |
References addArg().
|
inline |
References FlexArray< T >::push(), syntaxCount_, and syntaxes_.
Referenced by CommandLine::CommandLine().
|
inline |
|
inline |
References keywordLen_.
Referenced by CommandLine_Test::testParse().
|
inline |
References FlexArray< T >::get(), and syntaxes_.
Referenced by ParsedCommand::findArg(), ParsedCommand::implySyntax(), and CommandLine_Test::testParse().
|
inline |
References syntaxCount_.
Referenced by ParsedCommand::findArg(), ParsedCommand::implySyntax(), and CommandLine_Test::testParse().
|
inline |
References description_, FlexArray< T >::get(), CommandSyntax::help(), keyword_, syntaxCount_, and syntaxes_.
Referenced by CommandLine::commandHelp().
|
protected |
|
protected |
Referenced by help().
|
protected |
Referenced by getKeyword(), and help().
|
protected |
Referenced by getKeywordLen().
|
protected |
Referenced by addSyntax(), getSyntaxCount(), and help().
|
protected |
Referenced by addArg(), addSyntax(), getSyntax(), and help().