#include <program_options_lite.h>
Definition at line 204 of file program_options_lite.h.
df::program_options_lite::OptionSpecific::OptionSpecific |
( |
Options & |
parent_ | ) |
|
|
inline |
template<typename T >
OptionSpecific& df::program_options_lite::OptionSpecific::operator() |
( |
const std::string & |
name, |
|
|
T & |
storage, |
|
|
T |
default_val, |
|
|
const std::string & |
desc = "" |
|
) |
| |
|
inline |
Add option described by name to the parent Options list, with storage for the option's value with default_val as the default value with desc as an optional help description
Definition at line 217 of file program_options_lite.h.
OptionSpecific& df::program_options_lite::OptionSpecific::operator() |
( |
const std::string & |
name, |
|
|
OptionFunc::Func * |
func, |
|
|
const std::string & |
desc = "" |
|
) |
| |
|
inline |
Add option described by name to the parent Options list, with desc as an optional help description instead of storing the value somewhere, a function of type OptionFunc::Func is called. It is upto this function to correctly handle evaluating the option's value.
Definition at line 231 of file program_options_lite.h.
Options& df::program_options_lite::OptionSpecific::parent |
|
private |
The documentation for this class was generated from the following file: