#include <XMLClassesRegistry.h>
Classes | |
struct | TXMLData |
Public Member Functions | |
void | add (const std::string &input_xml_node_class) |
const rapidxml::xml_node< char > * | get (const std::string &xml_node_class) const |
XmlClassesRegistry (const std::string &xml_class_tag) | |
Private Attributes | |
std::map< std::string, TXMLData > | m_classes |
const std::string | m_tagname |
xml tag |
Storage of XML "class-like" entries used, for example, in the <vehicle> class factory.
Definition at line 20 of file XMLClassesRegistry.h.
mvsim::XmlClassesRegistry::XmlClassesRegistry | ( | const std::string & | xml_class_tag | ) | [inline] |
Define the xml tag, e.g. "vehicle:class" for "<vehicle:class name='xxx'>...</vehicle:class>"
Definition at line 42 of file XMLClassesRegistry.h.
void XmlClassesRegistry::add | ( | const std::string & | input_xml_node_class | ) |
Register a new class, given its XML definition as a text block
Definition at line 38 of file XMLClassesRegistry.cpp.
const rapidxml::xml_node< char > * XmlClassesRegistry::get | ( | const std::string & | xml_node_class | ) | const |
Return an XML node with the class definition, or NULL if not found
Definition at line 27 of file XMLClassesRegistry.cpp.
std::map<std::string, TXMLData> mvsim::XmlClassesRegistry::m_classes [private] |
Definition at line 37 of file XMLClassesRegistry.h.
const std::string mvsim::XmlClassesRegistry::m_tagname [private] |
xml tag
Definition at line 23 of file XMLClassesRegistry.h.