5 #include <xercesc/dom/DOM.hpp> 26 virtual ~ProcSplitter();
28 virtual void configure(DOMElement *
elem)
override;
37 ProcSplitter::ProcSplitter(
const char *
name,
const AtomicId *
id,
43 ProcSplitter::~ProcSplitter()
47 void ProcSplitter::configure(DOMElement *
elem)
49 DOMNode *node = elem->getFirstChild();
50 while(node && node->getNodeType() != DOMNode::ELEMENT_NODE)
51 node = node->getNextSibling();
54 std::strcmp(
XMLSimpleStr(node->getNodeName()),
"select") != 0)
56 <<
"Expected select tag in config section." 59 elem =
static_cast<DOMElement*
>(node);
61 count = XMLDocument::readAttribute<unsigned int>(
elem,
"first");
63 node = node->getNextSibling();
64 while(node && node->getNodeType() != DOMNode::ELEMENT_NODE)
65 node = node->getNextSibling();
69 <<
"Superfluous tags in config section."
MVATrainerComputer * calib
def elem(elemtype, innerHTML='', html_class='', kwargs)