8 using namespace cms::xerces;
11 : attrCount_(0), characterCount_(0), elementCount_(0), spaceCount_(0), sawErrors_(
false), userNS_(
false) {}
20 const XMLCh*
const localname,
21 const XMLCh*
const qname,
47 std::cout <<
"DetectorDescription/Parser/interface/DDLSAX2Handler::dumpStats, file: " << fname <<
" ("
59 <<
"\nError at file " <<
cStr(e.getSystemId()).ptr() <<
", line " << e.getLineNumber() <<
", char "
60 << e.getColumnNumber() <<
"\n Message: " <<
cStr(e.getMessage()).ptr() << std::endl;
66 <<
"\nFatal Error at file " <<
cStr(e.getSystemId()).ptr() <<
", line " << e.getLineNumber() <<
", char "
67 << e.getColumnNumber() <<
"\n Message: " <<
cStr(e.getMessage()).ptr() << std::endl;
68 throw cms::Exception(
"DDException") <<
"DetectorDescription_Parser_Unrecoverable_Error_from_Xerces: "
70 <<
" line: " << e.getLineNumber() <<
" col: " << e.getColumnNumber();
75 <<
"\nWarning at file " <<
cStr(e.getSystemId()).ptr() <<
", line " << e.getLineNumber() <<
", char "
76 << e.getColumnNumber() <<
"\n Message: " <<
cStr(e.getMessage()).ptr() << std::endl;
~DDLSAX2Handler() override
void error(const SAXParseException &exception) override
unsigned int getAttrCount() const
Get the count of attributes processed so far.
XMLSize_t characterCount_
Log< level::Error, false > LogError
void fatalError(const SAXParseException &exception) override
void characters(const XMLCh *chars, XMLSize_t length) override
virtual void setUserNS(bool userns)
ZStr< char > cStr(XMLCh const *str)
unsigned int getElementCount() const
Get the count of elements processed so far.
unsigned int getCharacterCount() const
Get the count of characters processed so far.
void comment(const XMLCh *chars, XMLSize_t length) override
unsigned int getSpaceCount() const
Get the count of spaces processed so far.
void endElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname) override
void warning(const SAXParseException &exception) override
void resetDocument() override
virtual void setNameSpace(const std::string &nms)
void ignorableWhitespace(const XMLCh *chars, XMLSize_t length) override
XERCES_CPP_NAMESPACE::Attributes Attributes
virtual void dumpStats(const std::string &fname)
Log< level::Warning, false > LogWarning
XERCES_CPP_NAMESPACE::SAXParseException SAXParseException
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override