CMS 3D CMS Logo

DDLSAX2ExpressionHandler.cc
Go to the documentation of this file.
5 #include <map>
6 #include <string>
7 
8 using namespace cms::xerces;
9 
10 class DDCompactView;
11 
14 {}
15 
17 {}
18 
19 // This does most of the work, it sets and determines whether it is
20 // in a ConstantsSection element, and if so, to process all the
21 // constants accordingly.
22 void
24  const XMLCh* const localname,
25  const XMLCh* const qname,
26  const Attributes& attrs )
27 {
28  if( XMLString::equals( qname, uStr("Constant").ptr()))
29  {
30  std::string varName = toString(attrs.getValue(uStr("name").ptr()));
31  std::string varValue = toString(attrs.getValue(uStr("value").ptr()));
33  ev.set(nmspace_, varName, varValue);
34  }
35 }
36 
37 void
38 DDLSAX2ExpressionHandler::endElement( const XMLCh* const uri,
39  const XMLCh* const localname,
40  const XMLCh* const qname )
41 {}
DDLSAX2ExpressionHandler(DDCompactView &cpv)
bool ev
type of data representation of DDCompactView
Definition: DDCompactView.h:90
DDLSAX2FileHandler is the SAX2 Handler for XML files found in the configuration file.
void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) override
static value_type & instance()
std::string toString(const char *format,...)
Definition: xdaq_compat.cc:4
std::string nmspace_
ZStr< XMLCh > uStr(char const *str)
bool equals(const edm::RefToBase< Jet > &j1, const edm::RefToBase< Jet > &j2)
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs) override
XERCES_CPP_NAMESPACE::Attributes Attributes