arg
1.2
a C++ command-line parser
|
double that can be relative (if it begins with '+' sign) More...
#include <val.hh>
Public Member Functions | |
RelValue (double &var, bool &is_relative) | |
a double value that can be relative More... | |
void | set (std::string const &str) |
convert the str to value and put it in storage | |
std::string | to_str () const |
convert the value to a string | |
std::string | get_type () const |
type name of the value | |
double that can be relative (if it begins with '+' sign)
RelValue::RelValue | ( | double & | var, |
bool & | is_relative | ||
) |
a double
value that can be relative
var | actual variable to stow the value |
is_relative | is it relative? |