Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added helper function getAttrOrDefault. #243

Merged
merged 1 commit into from Oct 13, 2017

Conversation

whit2333
Copy link

@whit2333 whit2333 commented Oct 7, 2017

BEGINRELEASENOTES

  • Added helper function getAttrOrDefault (defined in DDCore/include/XML/Helper.h)
    This function getAttrOrDefault(xml::Element e, xml::XmlChar attr_name, T default_value) will return the attribute name, 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.

ENDRELEASENOTES

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.
@MarkusFrankATcernch MarkusFrankATcernch merged commit c0088d8 into AIDASoft:master Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants