Skip to content

Commit

Permalink
DDCore: DetectorInfo: make INFO attributes optional
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Aug 25, 2022
1 parent 30e35fc commit 98586ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DDCore/src/plugins/Compact2Objects.cpp
Expand Up @@ -368,12 +368,12 @@ template <> void Converter<Constant>::operator()(xml_h e) const {
*/
template <> void Converter<Header>::operator()(xml_h e) const {
xml_comp_t c(e);
Header h(e.attr<string>(_U(name)), e.attr<string>(_U(title)));
h.setUrl(e.attr<string>(_U(url)));
h.setAuthor(e.attr<string>(_U(author)));
h.setStatus(e.attr<string>(_U(status)));
h.setVersion(e.attr<string>(_U(version)));
h.setComment(e.child(_U(comment)).text());
Header h(e.attr<string>(_U(name)), e.attr<string>(_U(title), "Undefined"));
h.setUrl(e.attr<string>(_U(url), "Undefined"));
h.setAuthor(e.attr<string>(_U(author), "Undefined"));
h.setStatus(e.attr<string>(_U(status), "development"));
h.setVersion(e.attr<string>(_U(version), "Undefined"));
h.setComment(e.hasChild(_U(comment)) ? e.child(_U(comment)).text() : "No Comment");
description.setHeader(h);
}

Expand Down

0 comments on commit 98586ec

Please sign in to comment.