libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
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 &helpString, const std::string &argumentName)
 
 CmdLineParser (const std::string &appName, int argc, char *argv[])
 
 CmdLineParser (const std::string &appName, const std::vector< std::string > &arguments)
 
std::string GetHelp (size_t indent=2) const
 
CmdLineParseResult Parse ()
 

Constructor & Destructor Documentation

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

Member Function Documentation

void osmscout::CmdLineParser::AddOption ( const CmdLineArgParserRef parser,
const std::string &  optionName,
const std::string &  helpString,
bool  stopParsing = false 
)
void osmscout::CmdLineParser::AddOption ( const CmdLineArgParserRef parser,
const std::vector< std::string > &  optionNames,
const std::string &  helpString,
bool  stopParsing = false 
)
void osmscout::CmdLineParser::AddPositional ( const CmdLineArgParserRef parser,
const std::string &  helpString,
const std::string &  argumentName 
)
std::string osmscout::CmdLineParser::GetHelp ( size_t  indent = 2) const

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