9 #include <xercesc/dom/DOM.hpp>
20 XERCES_CPP_NAMESPACE_USE
22 using namespace PhysicsTools;
31 virtual ~ProcClassed();
33 virtual void configure(DOMElement *
elem)
override;
42 ProcClassed::ProcClassed(
const char *
name,
const AtomicId *
id,
48 ProcClassed::~ProcClassed()
52 void ProcClassed::configure(DOMElement *
elem)
54 DOMNode *
node = elem->getFirstChild();
55 while(node && node->getNodeType() != DOMNode::ELEMENT_NODE)
56 node = node->getNextSibling();
59 std::strcmp(
XMLSimpleStr(node->getNodeName()),
"classes") != 0)
61 <<
"Expected classes tag in config section."
64 elem =
static_cast<DOMElement*
>(
node);
66 count = XMLDocument::readAttribute<unsigned int>(
elem,
"count");
68 node = node->getNextSibling();
69 while(node && node->getNodeType() != DOMNode::ELEMENT_NODE)
70 node = node->getNextSibling();
74 <<
"Superfluous tags in config section."
MVATrainerComputer * calib