#include <options.hpp>
|
template<typename DataType > |
void | registerOption (char const *optionName, char const *description) |
|
template<typename DataType > |
void | registerPositionalOption (char const *optionName, int position, char const *description) |
|
template<> |
void | registerOption (char const *optionName, char const *description) |
|
Gerneric option class to makee boost::program_options more useable.
- Todo:
- Move to a library, replace several instances (e.g., in apps::baseline_renderer)
◆ ParseResult
Enumerator |
---|
Success | |
Failure | |
Version | |
Help | |
◆ Options()
visr::apps::gain_matrix::Options::Options |
( |
| ) |
|
◆ ~Options()
visr::apps::gain_matrix::Options::~Options |
( |
| ) |
|
◆ getDefaultedOption()
template<typename DataType >
DataType visr::apps::gain_matrix::Options::getDefaultedOption |
( |
char const * |
optionName, |
|
|
DataType const & |
defaultValue |
|
) |
| const |
|
inline |
◆ getOption()
template<typename DataType >
DataType visr::apps::gain_matrix::Options::getOption |
( |
char const * |
optionName | ) |
const |
|
inline |
◆ hasOption()
bool visr::apps::gain_matrix::Options::hasOption |
( |
char const * |
optionName | ) |
const |
◆ parse()
Options::ParseResult visr::apps::gain_matrix::Options::parse |
( |
int |
argc, |
|
|
char const *const * |
argv, |
|
|
std::ostream & |
errMsg |
|
) |
| |
◆ printDescription()
void visr::apps::gain_matrix::Options::printDescription |
( |
std::ostream & |
out | ) |
|
Print the option description.
- Parameters
-
out | The output stream to which the description is written to. |
◆ registerOption() [1/2]
template<typename DataType >
void visr::apps::gain_matrix::Options::registerOption |
( |
char const * |
optionName, |
|
|
char const * |
description |
|
) |
| |
|
inlineprotected |
◆ registerOption() [2/2]
template<>
void visr::apps::gain_matrix::Options::registerOption |
( |
char const * |
optionName, |
|
|
char const * |
description |
|
) |
| |
|
inlineprotected |
◆ registerPositionalOption()
template<typename DataType >
void visr::apps::gain_matrix::Options::registerPositionalOption |
( |
char const * |
optionName, |
|
|
int |
position, |
|
|
char const * |
description |
|
) |
| |
|
inlineprotected |
◆ mDescription
boost::program_options::options_description visr::apps::gain_matrix::Options::mDescription |
|
protected |
◆ mPositionalDescription
boost::program_options::positional_options_description visr::apps::gain_matrix::Options::mPositionalDescription |
|
protected |
◆ mVariablesMap
boost::program_options::variables_map visr::apps::gain_matrix::Options::mVariablesMap |
|
protected |
The documentation for this class was generated from the following files:
- /Users/williammorris/builds/bc5dce7e/0/s3a/VISR/src/apps/gain_matrix/options.hpp
- /Users/williammorris/builds/bc5dce7e/0/s3a/VISR/src/apps/gain_matrix/options.cpp