18 #include <mrpt/version.h>    19 #if MRPT_VERSION<0x199    20 #include <mrpt/utils/utils_defs.h>      23 #include <mrpt/core/format.h>    31 using namespace mvsim;
    39         static bool done = 
false;
    61                 sName = string(class_name);
    65                 if (0 != strcmp(root->
name(), 
"element"))
    68                                         "[WorldElementBase::factory] XML root element is '%s' "    69                                         "('<element>' expected)",
    74                 if (!attrib_class || !attrib_class->
value())
    76                                 "[WorldElementBase::factory] Missing mandatory attribute "    77                                 "'class' in node <element>");
    79                 sName = string(attrib_class->
value());
    87                                 "[WorldElementBase::factory] Unknown world element type '%s'",
 
This file contains rapidxml parser and DOM implementation. 
TClassFactory_worldElements classFactory_worldElements
#define REGISTER_WORLD_ELEMENT(TEXTUAL_NAME, CLASS_NAME)
CLASS * create(const std::string &class_name, ARG1 a1) const 
xml_attribute< Ch > * first_attribute(const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const 
void register_all_world_elements()
This file contains rapidxml printer implementation.