25 const XMLCh*
const localname,
26 const XMLCh*
const qname,
43 unsigned int numAtts = attrs.getLength();
44 std::vector<std::string> attrNames, attrValues;
46 for (
unsigned int i = 0;
i < numAtts; ++
i) {
51 myElement->loadAttributes(myElementName, attrNames, attrValues,
nmspace_,
cpv_);
77 myElement->setParent(
parent());
78 myElement->setSelf(
self());
79 myElement->processElement(myElementName, nmspace,
cpv_);
87 for (XMLSize_t
i = 0;
i < length; ++
i) {
89 inString = inString +
s;
91 if (myElement->gotText())
92 myElement->appendText(inString);
94 myElement->loadText(inString);
virtual const std::string & parent() const
void comment(const XMLCh *chars, XMLSize_t length) override
static std::string & ns()
DDLElementRegistry & registry_
Compact representation of the geometrical detector hierarchy.
ROOT::VecOps::RVec< UChar_t > chars
ClhepEvaluator & evaluator()
~DDLSAX2FileHandler() override
std::shared_ptr< DDXMLElement > getElement(const std::string &name)
THE most important part. Getting the pointer to a given element type.
ZStr< char > cStr(XMLCh const *str)
std::vector< size_t > names_
void createDDConstants() const
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the do...
std::vector< std::string > namesMap_
static void createConstantsFromEvaluator(ClhepEvaluator &)
creates all DDConstants from the variables of the ClhepEvaluator
virtual const std::string & self() const
void endElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override
XERCES_CPP_NAMESPACE::Attributes Attributes
The main class for processing parsed elements.
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override
DDLSAX2FileHandler(DDCompactView &cpv, DDLElementRegistry &)
void characters(const XMLCh *chars, XMLSize_t length) override