#include <CmdLineParser.hpp>
|
static long | toLong (const std::string &str) |
|
static uint64_t | toUInt64 (const std::string &str) |
|
static double | toDbl (const std::string &str) |
|
static bool | isOptArg_long (const char *option) |
|
static bool | parseArg_bool (const std::string &value, const char *errTag) |
|
|
typedef std::map< std::string, std::string * > | SwitchToArgMap |
|
typedef std::vector< std::string > | ArgVec |
|
Definition at line 152 of file CmdLineParser.hpp.
◆ ArgVec
◆ IsOptArg_fn_t
typedef bool(* CmdLineParser::IsOptArg_fn_t) (const char *str) |
◆ SwitchToArgMap
◆ DupOptKind
Enumerator |
---|
DUPOPT_NULL | |
DUPOPT_ERR | |
DUPOPT_CLOB | |
DUPOPT_CAT | |
Definition at line 168 of file CmdLineParser.hpp.
◆ OptKind
◆ CmdLineParser() [1/3]
CmdLineParser::CmdLineParser |
( |
| ) |
|
◆ CmdLineParser() [2/3]
CmdLineParser::CmdLineParser |
( |
const OptArgDesc * |
optArgDescs, |
|
|
int |
argc, |
|
|
const char *const |
argv[] |
|
) |
| |
◆ ~CmdLineParser()
CmdLineParser::~CmdLineParser |
( |
| ) |
|
◆ CmdLineParser() [3/3]
◆ addOption() [1/2]
void CmdLineParser::addOption |
( |
const OptArgDesc & |
odesc, |
|
|
const SwDesc & |
swdesc |
|
) |
| |
|
private |
◆ addOption() [2/2]
void CmdLineParser::addOption |
( |
const OptArgDesc & |
odesc, |
|
|
const std::string & |
sw, |
|
|
const std::string & |
arg |
|
) |
| |
|
private |
◆ checkForErrors()
void CmdLineParser::checkForErrors |
( |
const OptArgDesc * |
optArgDescs | ) |
|
|
private |
◆ createSortedCopy()
◆ Ctor()
void CmdLineParser::Ctor |
( |
| ) |
|
|
private |
◆ ddump()
void CmdLineParser::ddump |
( |
| ) |
const |
◆ dump()
void CmdLineParser::dump |
( |
std::ostream & |
os = std::cerr | ) |
const |
◆ findOptDesc()
◆ getArg()
const string & CmdLineParser::getArg |
( |
unsigned int |
i | ) |
const |
◆ getCmd()
const string & CmdLineParser::getCmd |
( |
| ) |
const |
◆ getNumArgs()
unsigned int CmdLineParser::getNumArgs |
( |
| ) |
const |
◆ getOptArg() [1/3]
const string & CmdLineParser::getOptArg |
( |
const char |
swShort | ) |
const |
◆ getOptArg() [2/3]
const string & CmdLineParser::getOptArg |
( |
const char * |
swLong | ) |
const |
◆ getOptArg() [3/3]
const std::string& CmdLineParser::getOptArg |
( |
const std::string & |
sw | ) |
const |
◆ isOpt() [1/3]
bool CmdLineParser::isOpt |
( |
const char |
swShort | ) |
const |
◆ isOpt() [2/3]
bool CmdLineParser::isOpt |
( |
const char * |
swLong | ) |
const |
◆ isOpt() [3/3]
bool CmdLineParser::isOpt |
( |
const std::string & |
sw | ) |
const |
◆ isOptArg() [1/3]
bool CmdLineParser::isOptArg |
( |
const char |
swShort | ) |
const |
◆ isOptArg() [2/3]
bool CmdLineParser::isOptArg |
( |
const char * |
swLong | ) |
const |
◆ isOptArg() [3/3]
bool CmdLineParser::isOptArg |
( |
const std::string & |
sw | ) |
const |
◆ isOptArg_long()
bool CmdLineParser::isOptArg_long |
( |
const char * |
option | ) |
|
|
static |
◆ makeSwitchDesc()
◆ operator=()
◆ parse()
void CmdLineParser::parse |
( |
const OptArgDesc * |
optArgDescs, |
|
|
int |
argc, |
|
|
const char *const |
argv[] |
|
) |
| |
◆ parseArg_bool()
bool CmdLineParser::parseArg_bool |
( |
const std::string & |
value, |
|
|
const char * |
errTag |
|
) |
| |
|
static |
◆ reset()
void CmdLineParser::reset |
( |
| ) |
|
|
private |
◆ toDbl()
double CmdLineParser::toDbl |
( |
const std::string & |
str | ) |
|
|
static |
◆ toLong()
long CmdLineParser::toLong |
( |
const std::string & |
str | ) |
|
|
static |
◆ toUInt64()
uint64_t CmdLineParser::toUInt64 |
( |
const std::string & |
str | ) |
|
|
static |
◆ arguments
ArgVec CmdLineParser::arguments |
|
private |
◆ command
std::string CmdLineParser::command |
|
private |
◆ OptArgDesc_NULL
◆ switchToArgMap
The documentation for this class was generated from the following files: