15 #ifndef GUI_WIDGETS_FORMULA_HPP_INCLUDED
16 #define GUI_WIDGETS_FORMULA_HPP_INCLUDED
140 : formula_(), value_(value)
159 const T&
result = execute(variables, functions);
160 LOG_GUI_D <<
"Formula: execute '" << formula_ <<
"' result '" << result
236 static_assert(
sizeof(T) == 0,
"tformula: Missing execute specialization");
267 value_ = lexical_cast_default<T>(str);
Define the common log macros for the gui toolkit.
PangoAlignment decode_text_alignment(const std::string &alignment)
Converts a text alignment string to a text alignment.
A class inherited from ttext_box that displays its input as stars.
GLsizei const GLfloat * value
Templates and utility-routines for strings and numbers.
const std::string & as_string() const
bool string_bool(const std::string &str, bool def)
Convert no, false, off, 0, 0.0 to false, empty to def, and others to true.
GLsizei const GLcharARB ** string