Class TextInterface::ElementGet

template<class C, class Get, class Size>
class ElementGet : public TextInterface::Attribute<C>

Interface to an array of attributes.

In this template: C is a class that contains a vector of elements; Get is the accessor method of C that returns an element of the vector at a given index; and Size is the method of C that returns the number of elements in the vector.

Subclassed by TextInterface::ElementGetSet< C, Type, Get, Set, Size >

Public Functions

inline ElementGet(const std::string &_name, Get _get, Size _size)

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.

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.

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

Return true if the name argument matches.

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.