MCPcopy Create free account
hub / github.com/comaps/comaps / TableValueFromXML

Function TableValueFromXML

tools/openlr/openlr_model_xml.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41// <olr:lfrcnp olr:table="olr001_FunctionalRoadClass" olr:code="4"/>
42template <typename Value>
43bool TableValueFromXML(pugi::xml_node const & node, Value & value)
44{
45 if (!node)
46 return false;
47 value = static_cast<Value>(is_signed<Value>::value ? node.attribute("olr:code").as_int()
48 : node.attribute("olr:code").as_uint());
49 return true;
50}
51
52pugi::xml_node GetLinearLocationReference(pugi::xml_node const & node)
53{

Callers 2

LinePropertiesFromXMLFunction · 0.85
PathPropertiesFromXMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected