Class TextInterface::Interpreter
-
template<class I, class Get, class Set>
class Interpreter : public TextInterface::Value Text interface to a text interpreter.
In this template: I is a the interpreter class; Get is the method of I that returns a string; and Set is the method of I that accepts a string
Public Functions
-
inline Interpreter(const std::string &_name, I *ptr, Get _get, Set _set)
Set all attributes on construction.
-
inline virtual std::string get_name() const
Get the name of the value.
-
inline virtual std::string get_value() const
Get the value as text.
-
inline virtual void set_value(const std::string &text)
Set the value as text.
-
inline virtual std::string get_description() const
Get the description of the value.
-
inline void set_description(const std::string &text)
Set the description of the value.
-
inline virtual std::string get_detailed_description() const
Get the detailed description of the value.
-
inline void set_detailed_description(const std::string &text)
Set the detailed description of the value.
-
inline virtual void set_modifiers(const std::string &modifiers) const
Parse any modifiers that will alter the behaviour of the output stream.
-
inline virtual void reset_modifiers() const
Reset any output stream modifiers.
-
inline Interpreter(const std::string &_name, I *ptr, Get _get, Set _set)