Go to the documentation of this file.
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 & self() const
void endElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override
The main class for processing parsed elements.
ZStr< char > cStr(XMLCh const *str)
ClhepEvaluator & evaluator()
~DDLSAX2FileHandler() override
void characters(const XMLCh *chars, XMLSize_t length) override
Compact representation of the geometrical detector hierarchy.
DDLSAX2FileHandler(DDCompactView &cpv, DDLElementRegistry &)
void comment(const XMLCh *chars, XMLSize_t length) override
virtual const std::string & parent() const
std::vector< std::string > namesMap_
std::shared_ptr< DDXMLElement > getElement(const std::string &name)
THE most important part. Getting the pointer to a given element type.
XERCES_CPP_NAMESPACE::Attributes Attributes
static std::string & ns()
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override
std::vector< size_t > names_
DDLElementRegistry & registry_
void createDDConstants() const
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the do...
static void createConstantsFromEvaluator(ClhepEvaluator &)
creates all DDConstants from the variables of the ClhepEvaluator