Skip to content
Snippets Groups Projects
Commit 7a3e3190 authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files

Group common XML parsers (XMLParsers.h,XMLParsers.cpp).

parent 493ea645
No related branches found
No related tags found
No related merge requests found
...@@ -343,8 +343,8 @@ namespace DD4hep { ...@@ -343,8 +343,8 @@ namespace DD4hep {
xml_h child_rot, child_pos, child_piv; xml_h child_rot, child_pos, child_piv;
ConversionArg* arg = _param<ConversionArg>(); ConversionArg* arg = _param<ConversionArg>();
Condition con = create_condition(arg->detector, e); Condition con = create_condition(arg->detector, e);
Alignments::Delta& del = con.bind<Alignments::Delta>(); //Alignments::Delta& del = con.bind<Alignments::Delta>();
XML::parse(e, del); XML::parse_delta(e, con->data);
con->setFlag(Condition::ALIGNMENT); con->setFlag(Condition::ALIGNMENT);
arg->manager.registerUnlocked(arg->pool, con); arg->manager.registerUnlocked(arg->pool, con);
} }
......
...@@ -243,9 +243,6 @@ namespace DD4hep { ...@@ -243,9 +243,6 @@ namespace DD4hep {
#define DD4HEP_DEFINE_CONDITIONS_TYPE(x) \ #define DD4HEP_DEFINE_CONDITIONS_TYPE(x) \
namespace DD4hep { \ namespace DD4hep { \
template x& OpaqueDataBlock::bind<x>(); \
template x& OpaqueDataBlock::bind<x>(const std::string& val); \
template x& OpaqueDataBlock::set<x> (const std::string& val); \
namespace Conditions { \ namespace Conditions { \
template x& Condition::bind<x>(const std::string& val); \ template x& Condition::bind<x>(const std::string& val); \
template x& Condition::bind<x>(); \ template x& Condition::bind<x>(); \
......
...@@ -78,4 +78,12 @@ namespace DD4hep { ...@@ -78,4 +78,12 @@ namespace DD4hep {
} }
} /* End namespace DD4hep */ } /* End namespace DD4hep */
#define DD4HEP_DEFINE_OPAQUEDATA_TYPE(x) \
namespace DD4hep { \
template x& OpaqueDataBlock::bind<x>(); \
template x& OpaqueDataBlock::bind<x>(const std::string& val); \
template x& OpaqueDataBlock::set<x> (const std::string& val); \
}
#endif /* DD4HEP_OPAQUEDATA_INL_H */ #endif /* DD4HEP_OPAQUEDATA_INL_H */
...@@ -204,6 +204,8 @@ Alignment AlignmentData::nominal() const { ...@@ -204,6 +204,8 @@ Alignment AlignmentData::nominal() const {
#include "DD4hep/ToStream.h" #include "DD4hep/ToStream.h"
#include "DD4hep/objects/ConditionsInterna.h" #include "DD4hep/objects/ConditionsInterna.h"
DD4HEP_DEFINE_OPAQUEDATA_TYPE(Delta)
DD4HEP_DEFINE_OPAQUEDATA_TYPE(AlignmentData)
DD4HEP_DEFINE_CONDITIONS_TYPE_DUMMY(Delta) DD4HEP_DEFINE_CONDITIONS_TYPE_DUMMY(Delta)
DD4HEP_DEFINE_CONDITIONS_TYPE_DUMMY(AlignmentData) DD4HEP_DEFINE_CONDITIONS_TYPE_DUMMY(AlignmentData)
......
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