Class TextInterface::HasAProxy

template<class C, class M, class Get>
class HasAProxy : public TextInterface::AttributeAdapter<C, M>

Proxy enables attribute interface of member to be used by class.

In this template: C has a M; Get is the method of C that returns M*

Public Functions

inline HasAProxy(const std::string &pre, const Attribute<M> *pa, Get g)

Construct from a pointer to member attribute interface.

inline HasAProxy(const HasAProxy &copy)

Copy constructor.

inline virtual Attribute<C> *clone() const

Retun a newly constructed copy.

inline virtual std::string get_name() const

Get the name 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 *ptr, const std::string &val)

Set the value of the attribute.

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

Return true if the name argument matches.