14 : cpv_(cpv), registry_{reg}
31 const XMLCh*
const localname,
32 const XMLCh*
const qname,
50 unsigned int numAtts = attrs.getLength();
51 std::vector<std::string> attrNames, attrValues;
53 for (
unsigned int i = 0; i < numAtts; ++
i)
59 myElement->loadAttributes(myElementName, attrNames, attrValues,
nmspace_,
cpv_);
66 const XMLCh*
const localname,
67 const XMLCh*
const qname )
89 myElement->setParent(
parent());
90 myElement->setSelf(
self());
91 myElement->processElement(myElementName, nmspace,
cpv_);
98 const XMLSize_t length )
102 for (XMLSize_t
i = 0;
i < length; ++
i)
105 inString = inString +
s;
107 if (myElement->gotText())
108 myElement->appendText(inString);
110 myElement->loadText(inString);
115 const XMLSize_t length )
virtual const std::string & parent() const
void comment(const XMLCh *chars, XMLSize_t length) override
virtual const std::string & self() const
static std::string & ns()
std::vector< std::string > namesMap_
DDLElementRegistry & registry_
Compact representation of the geometrical detector hierarchy.
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)
static void createConstantsFromEvaluator(ClhepEvaluator &)
creates all DDConstants from the variables of the ClhepEvaluator
std::vector< size_t > names_
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
void createDDConstants() const
creates all DDConstant from the evaluator which has been already 'filled' in the first scan of the do...