#include <CLP.h>
◆ CLP()
| CLP::CLP |
( |
std::string |
name, |
|
|
std::string |
version, |
|
|
std::string |
copyright, |
|
|
std::string |
url, |
|
|
std::string |
usage |
|
) |
| |
◆ _getShortSwitchNameMapping()
| std::string CLP::_getShortSwitchNameMapping |
( |
const std::string & |
shortName | ) |
|
|
private |
◆ _processMysqlArguments()
| void CLP::_processMysqlArguments |
( |
std::string |
argument | ) |
|
|
private |
◆ _setSwitchArguments()
| void CLP::_setSwitchArguments |
( |
std::string |
currentSwitch, |
|
|
unsigned int |
argc, |
|
|
const char * |
argv[], |
|
|
unsigned int & |
currentIndex, |
|
|
CLS & |
cls |
|
) |
| |
|
private |
◆ _shortNameExists()
| bool CLP::_shortNameExists |
( |
const std::string & |
shortName | ) |
|
|
private |
◆ addSwitch()
| void CLP::addSwitch |
( |
std::string |
name, |
|
|
std::string |
shortName, |
|
|
std::string |
description, |
|
|
unsigned |
numberOfArguments = 0 |
|
) |
| |
◆ addUsage()
| void CLP::addUsage |
( |
const std::string |
usage | ) |
|
◆ getArguments()
| const std::vector< std::string > & CLP::getArguments |
( |
| ) |
|
◆ getMysqlArguments()
| const std::vector< std::string > & CLP::getMysqlArguments |
( |
| ) |
|
◆ getNetworkArguments()
| const std::vector< std::string > & CLP::getNetworkArguments |
( |
| ) |
|
◆ getSwitchArgument()
| std::string CLP::getSwitchArgument |
( |
std::string |
name, |
|
|
unsigned |
index |
|
) |
| |
getSwitchArgument: Some of the command line switches require arguments. This method returns the index'th argument specified by the user for a switch.
References _getShortSwitchNameMapping(), and _switches.
◆ hasMysqlArguments()
| bool CLP::hasMysqlArguments |
( |
| ) |
|
|
inline |
◆ hasSwitchSet()
| bool CLP::hasSwitchSet |
( |
std::string |
name | ) |
|
◆ parse()
| bool CLP::parse |
( |
unsigned int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
◆ printArguments()
| void CLP::printArguments |
( |
| ) |
const |
◆ printCopyrightNotice()
| void CLP::printCopyrightNotice |
( |
| ) |
const |
◆ printHelp()
| void CLP::printHelp |
( |
| ) |
const |
◆ _arguments
| std::vector<std::string> CLP::_arguments |
|
private |
◆ _copyright
| std::string CLP::_copyright |
|
private |
◆ _MYSQL_TYPE
| const std::string CLP::_MYSQL_TYPE = "mysql://" |
|
staticprivate |
◆ _mysqlArguments
| std::vector<std::string> CLP::_mysqlArguments |
|
private |
◆ _name
◆ _NETWORK_TYPE
| const std::string CLP::_NETWORK_TYPE = "http://" |
|
staticprivate |
◆ _NETWORK_TYPE_SECURE
| const std::string CLP::_NETWORK_TYPE_SECURE = "https://" |
|
staticprivate |
◆ _networkArguments
| std::vector<std::string> CLP::_networkArguments |
|
private |
◆ _shortSwitchMapping
| std::map<std::string,std::string> CLP::_shortSwitchMapping |
|
private |
◆ _switches
| std::map<std::string, CLS> CLP::_switches |
|
private |
◆ _url
◆ _usage
◆ _version
| std::string CLP::_version |
|
private |
The documentation for this class was generated from the following files: