41 const XMLCh*
const localname,
42 const XMLCh*
const qname,
53 DCOUT_V(
'P', std::string(
"DetectorDescription/Parser/interface/DDLSAX2ExpressionHandler: start ") +
pElementName);
54 unsigned int numAtts = attrs.getLength();
55 std::string varName, varValue;
56 for (
unsigned int i = 0;
i < numAtts; ++
i)
58 std::string myattname(
StrX(attrs.getLocalName(
i)).localForm());
59 std::string myvalue(
StrX(attrs.getValue(
i)).localForm());
61 std::string myQName(
StrX(attrs.getQName(
i)).localForm());
62 DCOUT_V(
'P', std::string(
"DetectorDescription/Parser/interface/DDLSAX2ExpressionHandler: ") +
"getLocalName = " + myattname +
" getValue = " + myvalue +
" getQName = " + myQName);
65 if (myattname ==
"name")
67 else if (myattname ==
"value")
79 const XMLCh*
const localname,
80 const XMLCh*
const qname )
DDLSAX2ExpressionHandler(DDCompactView &cpv)
virtual void set(const std::string &ns, const std::string &name, const std::string &valueExpr)=0
put a new variable named 'namespace:name' into the dictionary of the evaluator
type of data representation of DDCompactView
unsigned int elementCount_
DDLSAX2FileHandler is the SAX2 Handler for XML files found in the configuration file.
~DDLSAX2ExpressionHandler()
static value_type & instance()
Interface of an Expression Evaluator.
const char * localForm() const
void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
#define DCOUT_V(M_v_Y, M_v_S)
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
std::map< std::string, int > elementTypeCounter_
XERCES_CPP_NAMESPACE::Attributes Attributes