From 302565043bed0dc68bbe5e86ab94d94b15e43424 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 9 Jan 2015 15:25:13 +0100 Subject: Added RTTI information for XML classes, made children vector of XML elements private and added name printout to Manager debug graphviz function. --- src/core/XML.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/XML.cpp') diff --git a/src/core/XML.cpp b/src/core/XML.cpp index 7f03b35..affa75f 100644 --- a/src/core/XML.cpp +++ b/src/core/XML.cpp @@ -45,4 +45,11 @@ void Text::doSerialize(std::ostream &out, unsigned int tabdepth) out << text << '\n'; } } + +namespace RttiTypes { +const Rtti XMLNode = RttiBuilder("XMLNode"); +const Rtti XMLElement = + RttiBuilder("XMLElement").parent(&XMLNode).composedOf(&XMLNode); +const Rtti XMLText = RttiBuilder("XMLText").parent(&XMLNode); +} } -- cgit v1.2.3