Class TextInterface::To

template<class C>
class To : public TextInterface::Parser

Class text interface: an instance of C and a vector of Attribute<C>.

Public Functions

inline virtual void set_instance(C *c)

Set the instance.

inline virtual void setup(const Value *value)

Set the instance of the Attribute<C>.

template<class P> void i< parent-> size ()

Import the attribute interfaces from a parent text interface.

template<class M, class G> void i< member-> size ()

Import the attribute interfaces from a member text interface.

In this template, G should be of the type pointer to member function of C that returns pointer to M

template<class E, class G, class S> void i< member-> size ()

Import the attribute interfaces from a vector element text interface.

In this template: G should be of the type pointer to member function of C that returns pointer to the indexed element of type E, S should be a pointer to the member function that returns the number of elements of type E in C.

template<class K, class E, class G> void i< member-> size ()

Import the attribute interfaces from a map data text interface.

In this template: G should be of the type pointer to member function of C that accepts key K and returns pointer to data element E.

template<class K, class E, class G> inline void void void void void unsigned size () const

Import the attribute interfaces from a parent text interface.

Import the attribute interfaces from a member text interface Import the attribute interfaces from a member text interface Return the number of attributes

inline const Attribute<C> *get(unsigned i) const

Provide access to the attributes.

template<class Type>
class Generator : public TextInterface::Allocator<C, Type>
template<class Type>
class VGenerator : public TextInterface::VAllocator<C, Type>