Skip to content
Snippets Groups Projects
Commit a662c947 authored by Andre Sailer's avatar Andre Sailer
Browse files

Add attr function for xercesc use, so that char arrays can be used to get xml...

Add attr function for xercesc use, so that char arrays can be used to get xml elements (e.g., necessary to use ddsim w/ xercesc)
parent f53d18c5
No related branches found
No related tags found
No related merge requests found
......@@ -693,6 +693,12 @@ namespace DD4hep {
template <class T> T attr(const XmlChar* tag) const {
return m_element.attr<T>(tag);
}
#ifndef __TIXML__
/// Access typed attribute value by it's name
template <class T> T attr(const char* name) const {
return this->attr<T>(Strng_t(name));
}
#endif
/// Access attribute name (throws exception if not present)
const XmlChar* attr_name(const Attribute attr) const {
return m_element.attr_name(attr);
......
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