#include <CmdOptions.h>
Collaboration diagram for Impala::CmdOptions:
Public Member Functions | |
void | Initialise (bool stdVideoOptions=false, bool stdGaussOptions=false, bool stdDatabaseOptions=false) |
void | AddOption (char optNameS, const char *optNameL, const char *parName, const char *defVal, const char *alternatives=0, bool defaultFromEnv=false) |
void | SetDefault (char *optNameL, char *defVal) |
bool | ParseArgs (int argc, char *argv[], String usageStr, int nrReqArgs=0) |
int | GetNrArg () |
String | GetArg (int i) |
String | GetString (String optL, String defVal="") |
int | GetInt (String optL, int defVal=-1) |
double | GetDouble (String optL, double defVal=-1) |
bool | GetBool (String optL, bool defVal=false) |
void | PrintArgs (std::ostream &os) |
void | HideUsageFor (String parameter) |
Static Public Member Functions | |
static CmdOptions & | GetInstance () |
Private Member Functions | |
CmdOptions () | |
CmdOptions (const CmdOptions &) | |
CmdOptions & | operator= (const CmdOptions &) |
virtual | ~CmdOptions () |
int | NrOpt () |
int | GetOptIdx (String s) |
bool | IsOpt (String s) |
bool | IsOptS (String s) |
bool | IsOptL (String s) |
void | CheckDynamicOption (String s) |
String | DoParseArgs (int argc, char *argv[], String usageStr, int nrReqArgs) |
void | ShowUsage (char *progName, String usageStr) |
void | ReadIniFile (String fileName) |
void | ConfigureLogSystem () |
Private Attributes | |
std::vector< char > | mOptNameS |
std::vector< String > | mOptNameL |
std::vector< String > | mOptDefVal |
std::vector< String > | mOptVal |
std::vector< String > | mOptParName |
std::vector< String > | mOptAlt |
std::vector< bool > | mOptHideUsage |
std::vector< String > | mArg |
ILOG_VAR_DECL |
Definition at line 16 of file CmdOptions.h.