#include <CommandLineParser.h>
Definition at line 27 of file CommandLineParser.h.
◆ CommandLineParser() [1/2]
odc::tool::CommandLineParser::CommandLineParser |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ CommandLineParser() [2/2]
◆ ~CommandLineParser()
odc::tool::CommandLineParser::~CommandLineParser |
( |
| ) |
|
|
virtual |
◆ argc()
int odc::tool::CommandLineParser::argc |
( |
| ) |
|
◆ argv() [1/2]
char** odc::tool::CommandLineParser::argv |
( |
| ) |
|
|
inline |
◆ argv() [2/2]
std::string odc::tool::CommandLineParser::argv |
( |
int |
i | ) |
|
◆ operator=()
◆ optionArgument()
template<typename T >
template double odc::tool::CommandLineParser::optionArgument |
( |
const std::string & |
, |
|
|
T |
defaultValue |
|
) |
| |
- Returns
- value of the command line option passed to the tool converted to given type, or value of the second parameter if option not present on command line.
Definition at line 99 of file CommandLineParser.cc.
◆ optionIsSet()
bool odc::tool::CommandLineParser::optionIsSet |
( |
const std::string & |
option | ) |
|
◆ parameters() [1/2]
const std::vector< std::string > odc::tool::CommandLineParser::parameters |
( |
| ) |
|
- Returns
- command line parameters (without the options starting with '-')
Definition at line 82 of file CommandLineParser.cc.
◆ parameters() [2/2]
std::string odc::tool::CommandLineParser::parameters |
( |
size_t |
i | ) |
|
|
inline |
◆ parseCommandLine()
void odc::tool::CommandLineParser::parseCommandLine |
( |
| ) |
|
|
private |
◆ print()
void odc::tool::CommandLineParser::print |
( |
std::ostream & |
s | ) |
const |
|
private |
◆ registerOptionWithArgument()
void odc::tool::CommandLineParser::registerOptionWithArgument |
( |
const std::string & |
option | ) |
|
◆ operator<<
◆ argc_
int odc::tool::CommandLineParser::argc_ |
|
private |
◆ argv_
char** odc::tool::CommandLineParser::argv_ |
|
private |
◆ commandLineParsed_
bool odc::tool::CommandLineParser::commandLineParsed_ |
|
private |
◆ optionsNoArguments_
std::set<std::string> odc::tool::CommandLineParser::optionsNoArguments_ |
|
private |
◆ optionsWithArguments_
std::map<std::string, std::string> odc::tool::CommandLineParser::optionsWithArguments_ |
|
private |
◆ parameters_
std::vector<std::string> odc::tool::CommandLineParser::parameters_ |
|
private |
◆ registeredOptionsWithArguments_
std::set<std::string> odc::tool::CommandLineParser::registeredOptionsWithArguments_ |
|
private |
The documentation for this class was generated from the following files: