25 : doValidation_(
false),
49 const XMLCh*
const localname,
50 const XMLCh*
const qname,
57 std::string myelemname(
StrX(qname).localForm());
58 DCOUT_V(
'P',
"DetectorDescription/Parser/interface/DDLSAX2ConfigHandler::startElement" << myelemname <<
" started...");
60 unsigned int numAtts = attrs.getLength();
62 if (myelemname ==
"File")
64 std::string
name=
"", url=
"";
67 std::string myattname(
StrX(attrs.getLocalName(i)).localForm());
68 std::string myvalue(
StrX(attrs.getValue(i)).localForm());
70 if (myattname ==
"name")
72 if (myattname ==
"url")
76 DCOUT(
'P',
"file name = " << name <<
" and url = " << url);
80 else if (myelemname ==
"Root")
82 std::string
fileName=
"", logicalPartName=
"";
85 std::string myattname(
StrX(attrs.getLocalName(i)).localForm());
86 std::string myvalue(
StrX(attrs.getValue(i)).localForm());
88 if (myattname ==
"fileName")
90 if (myattname ==
"logicalPartName")
91 logicalPartName = myvalue;
95 fileName = fileName.substr(0, fileName.find(
"."));
103 DCOUT_V(
'P', std::string(
"DetectorDescription/Parser/interface/DDLSAX2ConfigHandler::startElement. Setting DDRoot LogicalPart=") + logicalPartName + std::string(
" in ") + fileName);
106 else if (myelemname ==
"Schema")
108 while ( i < numAtts )
110 std::string myattname(
StrX(attrs.getLocalName(i)).localForm());
111 std::string myvalue(
StrX(attrs.getValue(i)).localForm());
112 if (myattname ==
"schemaLocation")
114 else if (myattname ==
"validation")
122 const std::vector<std::string>&
128 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
XERCES_CPP_NAMESPACE::Attributes Attributes
#define DCOUT(M_v_Y, M_v_S)
string root
initialization