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.
July 23, 2010
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
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.
char * CmdLnArgParser::Arg | ( | string | opt | ) |
return argument following –`opt'
Definition at line 186 of file CmdLnArgParser.cxx.
double CmdLnArgParser::ArgAsDouble | ( | char | opt | ) |
Definition at line 123 of file CmdLnArgParser.cxx.
double CmdLnArgParser::ArgAsDouble | ( | string | opt | ) |
Definition at line 268 of file CmdLnArgParser.cxx.
Definition at line 132 of file CmdLnArgParser.cxx.
int CmdLnArgParser::ArgAsInt | ( | char | opt | ) |
Definition at line 144 of file CmdLnArgParser.cxx.
int CmdLnArgParser::ArgAsInt | ( | string | opt | ) |
Definition at line 277 of file CmdLnArgParser.cxx.
Definition at line 153 of file CmdLnArgParser.cxx.
long CmdLnArgParser::ArgAsLong | ( | char | opt | ) |
Definition at line 165 of file CmdLnArgParser.cxx.
long CmdLnArgParser::ArgAsLong | ( | string | opt | ) |
Definition at line 286 of file CmdLnArgParser.cxx.
Definition at line 174 of file CmdLnArgParser.cxx.
string CmdLnArgParser::ArgAsString | ( | char | opt | ) |
Definition at line 106 of file CmdLnArgParser.cxx.
Definition at line 259 of file CmdLnArgParser.cxx.
Definition at line 115 of file CmdLnArgParser.cxx.
bool CmdLnArgParser::OptionExists | ( | char | opt | ) |
|
private |
Definition at line 62 of file CmdLnArgParser.h.
|
private |
Definition at line 63 of file CmdLnArgParser.h.