arg
1.2
a C++ command-line parser
|
string
values from a set of terms
More...
#include <val.hh>
Public Member Functions | |
TermValue (std::string &var) | |
make string a TermValue | |
void | add_help (std::string const &title="Available values:") |
add a help term | |
void | add (std::string const &name, std::string const &help="") |
add a term More... | |
void | set (std::string const &str) override |
convert the str to value and put it in storage | |
std::string | to_str () const override |
convert the value to a string | |
std::string | get_type () const override |
type name of the value | |
string
values from a set of terms
void TermValue::add | ( | std::string const & | name, |
std::string const & | help = "" |
||
) |
add a term
name | the term |
help | decription of the term |