Class OptionBase

Inheritance Relationships

Derived Type

Class Documentation

class OptionBase

Subclassed by options::Option< T >

Public Functions

OptionBase(std::string name, ValueBase &value, std::string description = "", bool required = false)
inline OptionBase(const OptionBase &other)
inline OptionBase &operator=(const options::OptionBase &other)
std::string name() const
std::string description() const
const std::vector<std::string> &path() const
bool is_required() const
void from_yaml(const YAML::Node &node)
YAML::Node to_yaml() const
OptionBase &required()
OptionBase &optional()
OptionBase &describe(std::string description)
OptionBase &set_null()
bool is_null() const
bool is_nullable() const

Protected Attributes

std::string name_
std::string description_
std::vector<std::string> path_
bool required_ = false
ValueBase &value_