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

Function IntegerFromXML

tools/openlr/openlr_model_xml.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17{
18template <typename Value>
19bool IntegerFromXML(pugi::xml_node const & node, Value & value)
20{
21 if (!node)
22 return false;
23 value = static_cast<Value>(is_signed<Value>::value ? node.text().as_int() : node.text().as_uint());
24 return true;
25}
26
27std::optional<double> DoubleFromXML(pugi::xml_node const & node)
28{

Callers 3

GetLatLonFunction · 0.85
ValueFromXMLFunction · 0.85
SegmentFromXMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected