config_web_interface.hpp

TODO.

class ConfigWebUI
#include <config_web_interface.hpp>

Public Functions

inline ConfigWebUI(Config &c, const std::string &div_name = "settings_div")
inline void SetOnChangeFun(std::function<void(const std::string &val)> fun)
template<typename T>
inline void SetDefaultRangeFloatingPoint(Input &input, T val)
inline void SetDefaultRangeFixedPoint(Input &input, int val)
inline void ExcludeConfig(std::string setting)
inline void Setup(const std::string &id_prefix = "settings_")
inline Div &GetDiv()

Private Members

Config &config
Div settings_div
std::set<std::string> exclude
std::map<std::string, Div> group_divs
std::map<std::string, Input> input_map

Private Static Attributes

static std::set<std::string> numeric_types = {"int", "double", "float", "uint32_t", "uint64_t", "size_t"}