GENIEGenerator
|
Command line argument parser. More...
#include <CmdLnArgParser.h>
Public Member Functions | |
CmdLnArgParser (int argc, char **argv) | |
~CmdLnArgParser () | |
bool | OptionExists (char opt) |
was option set? More... | |
char * | Arg (char opt) |
return argument following -`opt' More... | |
string | ArgAsString (char opt) |
vector< string > | ArgAsStringTokens (char opt, string delimeter) |
double | ArgAsDouble (char opt) |
vector< double > | ArgAsDoubleTokens (char opt, string delimeter) |
int | ArgAsInt (char opt) |
vector< int > | ArgAsIntTokens (char opt, string delimeter) |
long | ArgAsLong (char opt) |
vector< long > | ArgAsLongTokens (char opt, string delimeter) |
bool | OptionExists (string opt) |
was option set? More... | |
char * | Arg (string opt) |
return argument following –`opt' More... | |
string | ArgAsString (string opt) |
double | ArgAsDouble (string opt) |
int | ArgAsInt (string opt) |
long | ArgAsLong (string opt) |
Private Attributes | |
int | fArgc |
char ** | fArgv |
Command line argument parser.
Definition at line 29 of file CmdLnArgParser.h.
CmdLnArgParser::CmdLnArgParser | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 22 of file CmdLnArgParser.cxx.
CmdLnArgParser::~CmdLnArgParser | ( | ) |
Definition at line 29 of file CmdLnArgParser.cxx.
char * CmdLnArgParser::Arg | ( | char | opt | ) |
return argument following -`opt'
Definition at line 34 of file CmdLnArgParser.cxx.
References fArgc, fArgv, LOG, pDEBUG, and pINFO.
Referenced by ArgAsDouble(), ArgAsInt(), ArgAsLong(), ArgAsString(), and main().
char * CmdLnArgParser::Arg | ( | string | opt | ) |
return argument following –`opt'
Definition at line 186 of file CmdLnArgParser.cxx.
References fArgc, fArgv, LOG, pDEBUG, and pINFO.
double CmdLnArgParser::ArgAsDouble | ( | char | opt | ) |
Definition at line 123 of file CmdLnArgParser.cxx.
References Arg().
Referenced by GetCommandLineArgs(), and main().
double CmdLnArgParser::ArgAsDouble | ( | string | opt | ) |
Definition at line 268 of file CmdLnArgParser.cxx.
References Arg().
vector< double > CmdLnArgParser::ArgAsDoubleTokens | ( | char | opt, |
string | delimeter | ||
) |
Definition at line 132 of file CmdLnArgParser.cxx.
References ArgAsStringTokens().
int CmdLnArgParser::ArgAsInt | ( | char | opt | ) |
Definition at line 144 of file CmdLnArgParser.cxx.
References Arg().
Referenced by DecodeCommandLine(), GetCommandLineArgs(), and genie::RunOpt::ReadFromCommandLine().
int CmdLnArgParser::ArgAsInt | ( | string | opt | ) |
Definition at line 277 of file CmdLnArgParser.cxx.
References Arg().
vector< int > CmdLnArgParser::ArgAsIntTokens | ( | char | opt, |
string | delimeter | ||
) |
Definition at line 153 of file CmdLnArgParser.cxx.
References ArgAsStringTokens().
long CmdLnArgParser::ArgAsLong | ( | char | opt | ) |
Definition at line 165 of file CmdLnArgParser.cxx.
References Arg().
Referenced by GetCommandLineArgs(), and main().
long CmdLnArgParser::ArgAsLong | ( | string | opt | ) |
Definition at line 286 of file CmdLnArgParser.cxx.
References Arg().
vector< long > CmdLnArgParser::ArgAsLongTokens | ( | char | opt, |
string | delimeter | ||
) |
Definition at line 174 of file CmdLnArgParser.cxx.
References ArgAsStringTokens().
string CmdLnArgParser::ArgAsString | ( | char | opt | ) |
Definition at line 106 of file CmdLnArgParser.cxx.
References Arg().
Referenced by ArgAsStringTokens(), DecodeCommandLine(), GetCommandLineArgs(), main(), and genie::RunOpt::ReadFromCommandLine().
string CmdLnArgParser::ArgAsString | ( | string | opt | ) |
Definition at line 259 of file CmdLnArgParser.cxx.
References Arg().
vector< string > CmdLnArgParser::ArgAsStringTokens | ( | char | opt, |
string | delimeter | ||
) |
Definition at line 115 of file CmdLnArgParser.cxx.
References ArgAsString(), and genie::utils::str::Split().
Referenced by ArgAsDoubleTokens(), ArgAsIntTokens(), ArgAsLongTokens(), and main().
bool CmdLnArgParser::OptionExists | ( | char | opt | ) |
was option set?
Definition at line 88 of file CmdLnArgParser.cxx.
Referenced by DecodeCommandLine(), GetCommandLineArgs(), main(), and genie::RunOpt::ReadFromCommandLine().
bool CmdLnArgParser::OptionExists | ( | string | opt | ) |
|
private |
Definition at line 62 of file CmdLnArgParser.h.
Referenced by Arg(), and OptionExists().
|
private |
Definition at line 63 of file CmdLnArgParser.h.
Referenced by Arg(), and OptionExists().