Added helper function getAttrOrDefault.
The function getAttrOrDefault(xml::Element e, xml::XmlChar attr_name, T default_value) will return the attribute converted to to type T but if it is not found it will return default_value. When building new detectors supplying this is useful for supplying default attribute values.
Please register or sign in to comment