Class OptionList¶
Defined in File options.hpp
Class Documentation¶
-
class OptionList¶
Public Functions
-
template<typename TValue>
inline void add(std::string name, TValue &value, std::string description = "", bool required = false)¶
-
OptionBase &operator[](std::string key)¶
-
void remove(std::string key)¶
-
std::vector<std::string> options() const¶
-
std::vector<std::string> required_options() const¶
-
bool has_option(std::string name) const noexcept¶
-
void from_yaml(const YAML::Node &node, const option_error_handler &handler = {}, bool check = true)¶
-
YAML::Node to_yaml(const option_error_handler &handler = {}) const¶
-
void load_yaml(std::string filename, const option_error_handler &handler = {})¶
-
void save_yaml(std::string filename, const option_error_handler &handler = {}) const¶
-
inline std::string list_options()¶
Protected Attributes
-
std::list<OptionBase> options_¶
-
template<typename TValue>