CMS 3D CMS Logo

DDLSAX2ExpressionHandler.cc
Go to the documentation of this file.
5 
6 #include <map>
7 #include <string>
8 
9 using namespace cms::xerces;
10 
11 class DDCompactView;
12 
15 {}
16 
18 {}
19 
20 // This does most of the work, it sets and determines whether it is
21 // in a ConstantsSection element, and if so, to process all the
22 // constants accordingly.
23 void
25  const XMLCh* const localname,
26  const XMLCh* const qname,
27  const Attributes& attrs )
28 {
29  if( XMLString::equals( qname, uStr("Constant").ptr()))
30  {
31  std::string varName = toString( attrs.getValue( uStr( "name" ).ptr()));
32  std::string varValue = toString( attrs.getValue( uStr( "value" ).ptr()));
34  ev.set(nmspace_, varName, varValue);
35  }
36 }
37 
38 void
39 DDLSAX2ExpressionHandler::endElement( const XMLCh* const uri,
40  const XMLCh* const localname,
41  const XMLCh* const qname )
42 {}
bool ev
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
DDLSAX2ExpressionHandler(DDCompactView &cpv, DDLElementRegistry &)
DDLSAX2FileHandler is the SAX2 Handler for XML files found in the configuration file.
void endElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override
ClhepEvaluator & evaluator()
DDLElementRegistry & registry()
std::string nmspace_
ZStr< XMLCh > uStr(char const *str)
std::string toString(const std::pair< T, T > &aT)
Definition: CaloEllipse.h:72
bool equals(const edm::RefToBase< Jet > &j1, const edm::RefToBase< Jet > &j2)
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override
XERCES_CPP_NAMESPACE::Attributes Attributes
void set(const std::string &ns, const std::string &name, const std::string &exprValue)
The main class for processing parsed elements.