LRAUV  revA
CommandArg Class Reference

#include <Command.h>

Public Member Functions

 CommandArg (const char *keyword, const RequiredType required)
 
 CommandArg (const CommandArgType argType, const RequiredType required, const char *altName=NULL)
 
CommandArgType getArgType () const
 
const char * getKeyword () const
 
const int getKeywordLen () const
 
RequiredType getRequired () const
 
bool equals (CommandArg *commandArg) const
 
void help (FILE *out) const
 

Protected Attributes

const CommandArgType argType_
 
const char * keyword_
 
const RequiredType required_
 
int keywordLen_
 

Private Member Functions

 CommandArg (const CommandArg &old)
 

Constructor & Destructor Documentation

CommandArg::CommandArg ( const char *  keyword,
const RequiredType  required 
)
inline
CommandArg::CommandArg ( const CommandArgType  argType,
const RequiredType  required,
const char *  altName = NULL 
)
inline
CommandArg::CommandArg ( const CommandArg old)
private

Member Function Documentation

bool CommandArg::equals ( CommandArg commandArg) const
inline

References argType_, keyword_, and keywordLen_.

Referenced by ParsedCommand::findArg().

CommandArgType CommandArg::getArgType ( ) const
inline
const char* CommandArg::getKeyword ( ) const
inline
const int CommandArg::getKeywordLen ( ) const
inline

Member Data Documentation

const CommandArgType CommandArg::argType_
protected

Referenced by equals(), getArgType(), and help().

const char* CommandArg::keyword_
protected

Referenced by equals(), getKeyword(), and help().

int CommandArg::keywordLen_
protected

Referenced by equals(), getKeywordLen(), and help().

const RequiredType CommandArg::required_
protected

Referenced by getRequired().


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