Classes | Public Member Functions | Private Attributes
mvsim::XmlClassesRegistry Class Reference

#include <XMLClassesRegistry.h>

List of all members.

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, TXMLDatam_classes
const std::string m_tagname
 xml tag

Detailed Description

Storage of XML "class-like" entries used, for example, in the <vehicle> class factory.

Definition at line 20 of file XMLClassesRegistry.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.


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


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 22:08:35