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 {}
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.
static value_type & instance()
void endElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override
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 *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override
XERCES_CPP_NAMESPACE::Attributes Attributes