Class TextInterface::AttributeGet

template<class C, class Get>
class AttributeGet : public TextInterface::Attribute<C>

Interface to a class attribute with an accessor method, C::Get().

Subclassed by TextInterface::AttributeGetSet< C, Type, Get, Set >, TextInterface::AttributeXformGet< C, Get, X >

Public Functions

inline AttributeGet(const std::string &_name, Get _get)

Constructor.

inline virtual Attribute<C> *clone() const

Return a clone.

inline virtual std::string get_name() const

Get the name of the attribute.

inline virtual std::string get_description() const

Get the description of the attribute.

inline virtual void set_description(const std::string &d)

Get the description of the attribute.

inline virtual std::string get_detailed_description() const

Get the detailed description of the attribute.

inline virtual void set_detailed_description(const std::string &d)

Get the detailed description of the attribute.

inline virtual std::string get_value(const C *ptr) const

Get the value of the attribute.

inline virtual void set_value(C*, const std::string&)

Set the value of the attribute.

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.