1 #ifndef ALGORITHM_CALIBRATION_H
2 #define ALGORITHM_CALIBRATION_H
7 #include <xercesc/dom/DOM.hpp>
8 #include <xercesc/dom/DOMElement.hpp>
9 #include <xercesc/util/XMLString.hpp>
19 namespace XERCES_CPP_NAMESPACE {
37 template <
class T,
class CO>
42 typedef XERCES_CPP_NAMESPACE::DOMNode
DOMNode;
75 if (
m_xml ==
nullptr) {
87 template <
class T,
class CO>
95 template <
class T,
class CO>
101 template <
class T,
class CO>
103 if (
dom() ==
nullptr)
108 if (n1->getNodeType() == DOMNode::ELEMENT_NODE) {
111 CO *
obj = readObject(n1->getFirstChild());
113 this->addEntry(*cat, *obj);
118 n1 = n1->getNextSibling();
123 template <
class T,
class CO>
127 if (n1->getNodeType() == DOMNode::ELEMENT_NODE)
129 n1 = n1->getNextSibling();
CO * readObject(DOMNode *)
AlgorithmCalibration(const std::string &fileName)
__host__ __device__ VT * co
void updateCalibration(const typename T::Input &calibrationInput)
XERCES_CPP_NAMESPACE::DOMNode DOMNode
DOMElement * calibrationDOM()
XERCES_CPP_NAMESPACE::DOMElement DOMElement
void openFile(const std::string &xmlFileName)
void saveCalibration(const std::string &fileName)