16 using namespace mvsim;
24 static bool done =
false;
35 : m_world(my_vehicle.getWorldObject()), m_my_vehicle(my_vehicle)
48 if (!xml_node || 0 != strcmp(xml_node->
name(),
"friction"))
50 "[FrictionBase::factory] Expected XML node <friction>");
54 if (!frict_class || !frict_class->
value())
56 "[FrictionBase::factory] Missing mandatory attribute 'class' in "
This file contains rapidxml parser and DOM implementation.
std::weak_ptr< CSVLogger > m_logger
FrictionBase(VehicleBase &my_vehicle)
static FrictionBase * factory(VehicleBase &parent, const rapidxml::xml_node< char > *xml_node)
CLASS * create(const std::string &class_name, ARG1 a1) const
TClassFactory_friction classFactory_friction
#define REGISTER_FRICTION(TEXTUAL_NAME, CLASS_NAME)
xml_attribute< Ch > * first_attribute(const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
void setLogger(const std::weak_ptr< CSVLogger > &logger)
void register_all_friction()