|
Public Member Functions |
void | addUsage (const std::string usage) |
void | addSwitch (std::string name, std::string shortName, std::string description, unsigned numberOfArguments=0) |
std::string | getSwitchArgument (std::string name, unsigned index) |
bool | parse (int argc, char *argv[]) |
bool | hasSwitchSet (std::string name) |
const std::vector< std::string > & | getArguments () |
const std::vector< std::string > & | getNetworkArguments () |
const std::vector< std::string > & | getMysqlArguments () |
bool | hasMysqlArguments () |
void | printHelp () |
void | printArguments () |
Private Member Functions |
void | _setSwitchArguments (std::string currentSwitch, int argc, char *argv[], int ¤tIndex, CLS &cls) |
void | _processMysqlArguments (std::string argument) |
std::string | _getShortSwitchNameMapping (const std::string &shortName) |
bool | _shortNameExists (const std::string &shortName) |
Private Attributes |
std::string | _usage |
std::map< std::string, std::string > | _shortSwitchMapping |
std::map< std::string, CLS > | _switches |
std::vector< std::string > | _arguments |
std::vector< std::string > | _networkArguments |
std::vector< std::string > | _mysqlArguments |
Static Private Attributes |
static const std::string | _NETWORK_TYPE = "http://" |
static const std::string | _NETWORK_TYPE_SECURE = "https://" |
static const std::string | _MYSQL_TYPE = "mysql://" |