Loading...
Searching...
No Matches
NodeXML< T >::Elem< ELEM > Class Template Reference

A "handle" for specialized element classes, i.e. with members like width , height or radius . More...

Detailed Description

template<class T = int>
template<T ELEM>
class drain::NodeXML< T >::Elem< ELEM >

A "handle" for specialized element classes, i.e. with members like width , height or radius .

The members should be implemented as drain::FlexibleVariable &, instantiated like height(node["height"] = 0) .

Example:

template <>
template <>
class NodeXML<image::svg::tag_t>::Elem<image::svg::tag_t::CIRCLE>{
public:
inline
Elem(image::NodeSVG & node) : x(node["x"]), y(node["y"]), radius(node["radius"]){
node.setType(image::svg::tag_t::CIRCLE);
};
FlexibleVariable & radius;
};
A "handle" for specialized element classes, i.e. with members like width , height or radius .
Definition TreeXML.h:102
Definition TreeXML.h:341
VariableT is a final class applied through typedefs Variable, Reference and FlexibleVariable.
Definition VariableT.h:87
Definition TreeSVG.h:201
See also
drain::image::NodeSVG

The documentation for this class was generated from the following file: