Skip to content
Snippets Groups Projects
Commit c0088d86 authored by Whitney Armstrong's avatar Whitney Armstrong Committed by MarkusFrankATcernch
Browse files

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.
parent a6748be1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment