40 const XMLCh*
const localname,
41 const XMLCh*
const qname,
52 DCOUT_V(
'P', std::string(
"DetectorDescription/Parser/interface/DDLSAX2ExpressionHandler: start ") +
pElementName);
53 unsigned int numAtts = attrs.getLength();
54 std::string varName, varValue;
55 for (
unsigned int i = 0;
i < numAtts; ++
i)
57 std::string myattname(
StrX(attrs.getLocalName(
i)).localForm());
58 std::string myvalue(
StrX(attrs.getValue(
i)).localForm());
60 std::string myQName(
StrX(attrs.getQName(
i)).localForm());
61 DCOUT_V(
'P', std::string(
"DetectorDescription/Parser/interface/DDLSAX2ExpressionHandler: ") +
"getLocalName = " + myattname +
" getValue = " + myvalue +
" getQName = " + myQName);
64 if (myattname ==
"name")
66 else if (myattname ==
"value")
78 const XMLCh*
const localname,
79 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