24 : doValidation_(
false),
48 const XMLCh*
const localname,
49 const XMLCh*
const qname,
57 DCOUT_V(
'P',
"DetectorDescription/Parser/interface/DDLSAX2ConfigHandler::startElement" << myelemname <<
" started...");
59 unsigned int numAtts = attrs.getLength();
61 if (myelemname ==
"File")
69 if (myattname ==
"name")
71 if (myattname ==
"url")
75 DCOUT(
'P',
"file name = " << name <<
" and url = " <<
url);
79 else if (myelemname ==
"Root")
87 if (myattname ==
"fileName")
89 if (myattname ==
"logicalPartName")
90 logicalPartName = myvalue;
94 fileName = fileName.substr(0, fileName.find(
"."));
102 DCOUT_V(
'P',
std::string(
"DetectorDescription/Parser/interface/DDLSAX2ConfigHandler::startElement. Setting DDRoot LogicalPart=") + logicalPartName +
std::string(
" in ") + fileName);
105 else if (myelemname ==
"Schema")
107 while ( i < numAtts )
111 if (myattname ==
"schemaLocation")
113 else if (myattname ==
"validation")
121 const std::vector<std::string>&
127 const std::vector<std::string>&
const std::string getSchemaLocation() const
DDName is used to identify DDD entities uniquely.
std::vector< std::string > files_
type of data representation of DDCompactView
unsigned int elementCount_
void setRoot(const DDLogicalPart &root)
don't use : interface not stable ....
static value_type & instance()
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
#define DCOUT_V(M_v_Y, M_v_S)
std::vector< std::string > urls_
const std::vector< std::string > & getURLs() const
std::string schemaLocation_
DDLSAX2ConfigHandler(DDCompactView &cpv)
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
const std::vector< std::string > & getFileNames() const
const bool doValidation() const
volatile std::atomic< bool > shutdown_flag false
XERCES_CPP_NAMESPACE::Attributes Attributes
#define DCOUT(M_v_Y, M_v_S)
string root
initialization