Class TextInterface::Value

class Value : public Reference::Able

Text interface to a value of undefined type.

Subclassed by TextInterface::Attribute< M >, TextInterface::Attribute< V >, TextInterface::Attribute< C >, TextInterface::Interpreter< I, Get, Set >, TextInterface::Nested, TextInterface::ValueGet< T >

Public Functions

Value()

Explicit default constructor required to delay definition of Reference::To<Parser>.

~Value()

Explicit destructor required to delay definition of Reference::To<Parser>.

virtual std::string get_name() const = 0

Get the name of the value.

virtual std::string get_value() const = 0

Get the value as text.

virtual void set_value(const std::string &value) = 0

Set the value as text.

virtual std::string get_description() const = 0

Get the description of the value.

inline virtual std::string get_detailed_description() const

Get the detailed description of the value.

inline virtual bool matches(const std::string &name) const

Return true if the name argument matches the value name.

virtual void set_modifiers(const std::string&) const = 0

Parse any modifiers that will alter the behaviour of the output stream.

virtual void reset_modifiers() const = 0

Reset any output stream modifiers.