libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::CmdLineParser Class Reference

#include <CmdLineParsing.h>

Public Member Functions

void AddOption (const CmdLineArgParserRef &parser, const std::string &optionName, const std::string &helpString, bool stopParsing=false)
 
void AddOption (const CmdLineArgParserRef &parser, const std::vector< std::string > &optionNames, const std::string &helpString, bool stopParsing=false)
 
void AddPositional (const CmdLineArgParserRef &parser, const std::string &argumentName, const std::string &helpString)
 
 CmdLineParser (const std::string &appName, const std::vector< std::string > &arguments)
 
 CmdLineParser (const std::string &appName, int argc, char *argv[])
 
std::string GetHelp (size_t indent=2) const
 
CmdLineParseResult Parse ()
 

Constructor & Destructor Documentation

◆ CmdLineParser() [1/2]

osmscout::CmdLineParser::CmdLineParser ( const std::string &  appName,
int  argc,
char *  argv[] 
)

◆ CmdLineParser() [2/2]

osmscout::CmdLineParser::CmdLineParser ( const std::string &  appName,
const std::vector< std::string > &  arguments 
)

Member Function Documentation

◆ AddOption() [1/2]

void osmscout::CmdLineParser::AddOption ( const CmdLineArgParserRef parser,
const std::string &  optionName,
const std::string &  helpString,
bool  stopParsing = false 
)

◆ AddOption() [2/2]

void osmscout::CmdLineParser::AddOption ( const CmdLineArgParserRef parser,
const std::vector< std::string > &  optionNames,
const std::string &  helpString,
bool  stopParsing = false 
)

◆ AddPositional()

void osmscout::CmdLineParser::AddPositional ( const CmdLineArgParserRef parser,
const std::string &  argumentName,
const std::string &  helpString 
)

◆ GetHelp()

std::string osmscout::CmdLineParser::GetHelp ( size_t  indent = 2) const

◆ Parse()


The documentation for this class was generated from the following files: