class ConfigVariableString

Bases: ConfigVariable

This is a convenience class to specialize ConfigVariable as a string type.

Inheritance diagram

Inheritance diagram of ConfigVariableString

ConfigVariableString(std::string const &name)
ConfigVariableString(std::string const &name, std::string const &default_value, std::string const &description = string(), int flags = 0)
ConfigVariableString(ConfigVariableString const&) = default
char const *c_str(void) const

These methods help the ConfigVariableString act like a C++ string object.

bool empty(void) const
std::string get_default_value(void) const

Returns the variable’s default value.

std::string const &get_value(void) const

Returns the variable’s value.

std::string get_word(std::size_t n) const

Returns the variable’s nth value.

std::size_t length(void) const
void set_value(std::string const &value)

Reassigns the variable’s local value.

void set_word(std::size_t n, std::string const &value)

Reassigns the variable’s nth value. This makes a local copy of the variable’s overall value.