LRAUV  revA
Command Class Reference

#include <Command.h>

Collaboration diagram for Command:

Public Member Functions

 Command (const char *keyword, const char *description, bool advanced)
 
CommandaddSyntax (const char *syntaxHelp, void(*syntaxCall)(ParsedCommand *, int), const int mode=0)
 
CommandaddArg (CommandArg *arg)
 
CommandaddArg (const char *keyword, const RequiredType required=REQUIRED)
 
CommandaddArg (const CommandArgType argType, const RequiredType required=REQUIRED, const char *altName=NULL)
 
const char * getKeyword ()
 
const int getKeywordLen ()
 
CommandSyntaxgetSyntax (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)
 

Constructor & Destructor Documentation

Command::Command ( const char *  keyword,
const char *  description,
bool  advanced 
)
inline
Command::Command ( const Command old)
private

Member Function Documentation

Command& Command::addArg ( CommandArg arg)
inline
Command& Command::addArg ( const char *  keyword,
const RequiredType  required = REQUIRED 
)
inline

References addArg().

Command& Command::addArg ( const CommandArgType  argType,
const RequiredType  required = REQUIRED,
const char *  altName = NULL 
)
inline

References addArg().

Command& Command::addSyntax ( const char *  syntaxHelp,
void(*)(ParsedCommand *, int)  syntaxCall,
const int  mode = 0 
)
inline
const int Command::getKeywordLen ( )
inline

References keywordLen_.

Referenced by CommandLine_Test::testParse().

CommandSyntax* Command::getSyntax ( int  index)
inline
int Command::getSyntaxCount ( )
inline
void Command::help ( bool  full,
FILE *  out 
) const
inline

Member Data Documentation

bool Command::advanced_
protected
const char* Command::description_
protected

Referenced by help().

const char* Command::keyword_
protected

Referenced by getKeyword(), and help().

int Command::keywordLen_
protected

Referenced by getKeywordLen().

int Command::syntaxCount_
protected

Referenced by addSyntax(), getSyntaxCount(), and help().

FlexArray<CommandSyntax*> Command::syntaxes_
protected

Referenced by addArg(), addSyntax(), getSyntax(), and help().


The documentation for this class was generated from the following file: