43 #if !defined(QT_MODULE_XML) 46 #define QM_EXPORT Q_EXPORT 90 #if defined(Q_TEMPLATEDLL) 137 QString localName(
int index )
const;
138 QString qName(
int index )
const;
139 QString uri(
int index )
const;
171 virtual void setData(
const QString&
d );
192 int columnNumber()
const;
193 int lineNumber()
const;
217 virtual bool feature(
const QString&
name,
bool *ok = 0 )
const = 0;
218 virtual void setFeature(
const QString& name,
bool value ) = 0;
219 virtual bool hasFeature(
const QString& name )
const = 0;
220 virtual void* property(
const QString& name,
bool *ok = 0 )
const = 0;
221 virtual void setProperty(
const QString& name,
void* value ) = 0;
222 virtual bool hasProperty(
const QString& name )
const = 0;
302 virtual bool is_S(
const QChar& );
303 virtual bool is_Letter(
const QChar& );
304 virtual bool is_NameBeginning(
const QChar& );
305 virtual bool is_Digit(
const QChar& );
306 virtual bool is_CombiningChar(
const QChar& );
307 virtual bool is_Extender(
const QChar& );
308 virtual bool is_NameChar(
const QChar& );
313 void stringAddC(
const QChar&);
317 void nameAddC(
const QChar&);
321 void refAddC(
const QChar&);
335 bool entityExist(
const QString& )
const;
345 bool parsePI(
bool xmldecl=
FALSE);
349 bool parseName(
bool useRef=
FALSE );
351 bool parseAttribute();
355 bool parseExternalID(
bool allowPublicID =
FALSE );
357 bool parseMarkupdecl();
358 bool parseAttlistDecl();
360 bool parseAttValue();
361 bool parseElementDecl();
362 bool parseNotationDecl();
363 bool parseChoiceSeq();
364 bool parseEntityDecl();
365 bool parseEntityValue();
367 bool parseString(
const QString&
s );
369 void reportParseError();
406 virtual void setDocumentLocator(
QXmlLocator* locator ) = 0;
407 virtual bool startDocument() = 0;
408 virtual bool endDocument() = 0;
410 virtual bool endPrefixMapping(
const QString& prefix ) = 0;
412 virtual bool endElement(
const QString& namespaceURI,
const QString& localName,
const QString& qName ) = 0;
413 virtual bool characters(
const QString& ch ) = 0;
414 virtual bool ignorableWhitespace(
const QString& ch ) = 0;
416 virtual bool skippedEntity(
const QString&
name ) = 0;
417 virtual QString errorString() = 0;
427 virtual QString errorString() = 0;
435 virtual bool unparsedEntityDecl(
const QString& name,
const QString& publicId,
const QString& systemId,
const QString& notationName ) = 0;
436 virtual QString errorString() = 0;
444 virtual QString errorString() = 0;
452 virtual bool endDTD() = 0;
455 virtual bool startCDATA() = 0;
456 virtual bool endCDATA() = 0;
458 virtual QString errorString() = 0;
467 virtual bool externalEntityDecl(
const QString& name,
const QString& publicId,
const QString& systemId ) = 0;
468 virtual QString errorString() = 0;
521 #define QT_NO_XML_INLINE 525 #ifndef QT_NO_XML_INLINE 531 {
return ch==
' ' || ch==
'\t' || ch==
'\n' || ch==
'\r'; }
537 {
return ch==
'_' || ch==
':' || ch.
isLetter(); }
550 return ch==
'.' || ch==
'-' || ch==
'_' || ch==
':' ||
551 is_Letter(ch) || is_Digit(ch) ||
552 is_CombiningChar(ch) || is_Extender(ch);
557 if ( !xmlRef.isEmpty() ) {
559 xmlRef.remove( 0, 1 );
561 if (
c==
'\n' ||
c==
'\r' ) {
565 if (
pos >= xmlLength ) {
576 {
return c ==
QEOF; }
579 {
while ( !atEnd() && is_S(
c) ) next(); }
582 { next(); eat_ws(); }
588 stringValue +=
QString( stringArray, stringPos );
594 nameValue +=
QString( nameArray, namePos );
600 refValue +=
QString( refArray, refPos );
606 { stringValue =
""; stringPos = 0; }
608 { nameValue =
""; namePos = 0; }
610 { refValue =
""; refPos = 0; }
614 if ( stringPos >= 256 ) {
615 stringValue +=
QString( stringArray, stringPos );
618 stringArray[stringPos++] =
c;
622 if ( namePos >= 256 ) {
623 nameValue +=
QString( nameArray, namePos );
626 nameArray[namePos++] =
c;
630 if ( refPos >= 256 ) {
631 refValue +=
QString( refArray, refPos );
634 refArray[refPos++] =
c;
639 if ( stringPos >= 256 ) {
640 stringValue +=
QString( stringArray, stringPos );
643 stringArray[stringPos++] = ch;
647 if ( namePos >= 256 ) {
648 nameValue +=
QString( nameArray, namePos );
651 nameArray[namePos++] = ch;
655 if ( refPos >= 256 ) {
656 refValue +=
QString( refArray, refPos );
659 refArray[refPos++] = ch;
QMap< QString, QString > ns
QStringList localnameList
virtual bool is_S(const QChar &)
QXmlEntityResolver * entityRes
virtual void setEntityResolver(QXmlEntityResolver *handler)=0
The QXmlLocator class provides the XML handler classes with information about the actual parsing posi...
virtual ~QXmlDTDHandler()
QXmlLexicalHandler * lexicalHnd
virtual void setContentHandler(QXmlContentHandler *handler)=0
The QXmlLexicalHandler class provides an interface to report lexical content of XML data...
virtual bool skippedEntity(const QString &name)=0
QValueStack< QString > tags
void msg(const char *fmt,...)
virtual bool startDocument()=0
virtual bool feature(const QString &name, bool *ok=0) const =0
virtual bool is_CombiningChar(const QChar &)
The QXmlNamespaceSupport class is a helper class for XML readers which want to include namespace supp...
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)=0
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
virtual bool startDTD(const QString &name, const QString &publicId, const QString &systemId)=0
The QXmlErrorHandler class provides an interface to report errors in XML data.
The QXmlDTDHandler class provides an interface to report DTD content of XML data. ...
virtual QXmlDeclHandler * declHandler() const =0
The QChar class provides a light-weight Unicode character.
virtual bool hasFeature(const QString &name) const =0
virtual QXmlDTDHandler * DTDHandler() const =0
QXmlContentHandler * contentHnd
QXmlSimpleReaderPrivate * d
QXmlDeclHandler * declHnd
The QXmlSimpleReader class provides an implementation of a simple XML reader (i.e. parser).
virtual ~QXmlContentHandler()
virtual QXmlErrorHandler * errorHandler() const =0
virtual bool attributeDecl(const QString &eName, const QString &aName, const QString &type, const QString &valueDefault, const QString &value)=0
QTextStream & reset(QTextStream &s)
QXmlLocator(QXmlSimpleReader *parent)
virtual bool unparsedEntityDecl(const QString &name, const QString &publicId, const QString &systemId, const QString ¬ationName)=0
virtual QXmlEntityResolver * entityResolver() const =0
virtual void setDTDHandler(QXmlDTDHandler *handler)=0
virtual bool is_Extender(const QChar &)
virtual void setDeclHandler(QXmlDeclHandler *handler)=0
The QXmlContentHandler class provides an interface to report logical content of XML data...
The QXmlDefaultHandler class provides a default implementation of all XML handler classes...
QXmlSimpleReader * reader
The QXmlReader class provides an interface for XML readers (i.e. parsers).
virtual void setErrorHandler(QXmlErrorHandler *handler)=0
virtual bool notationDecl(const QString &name, const QString &publicId, const QString &systemId)=0
virtual bool processingInstruction(const QString &target, const QString &data)=0
virtual bool ignorableWhitespace(const QString &ch)=0
virtual bool is_Letter(const QChar &)
virtual ~QXmlErrorHandler()
virtual QXmlLexicalHandler * lexicalHandler() const =0
virtual QXmlContentHandler * contentHandler() const =0
virtual bool endDocument()=0
virtual bool startCDATA()=0
virtual bool endPrefixMapping(const QString &prefix)=0
virtual bool hasProperty(const QString &name) const =0
virtual void * property(const QString &name, bool *ok=0) const =0
The QFile class is an I/O device that operates on files.
virtual ~QXmlDefaultHandler()
The QTextStream class provides basic functions for reading and writing text using a QIODevice...
virtual void setLexicalHandler(QXmlLexicalHandler *handler)=0
QXmlParseException(const QString &name="", int c=-1, int l=-1, const QString &p="", const QString &s="")
QValueStack< QMap< QString, QString > > nsStack
virtual bool characters(const QString &ch)=0
virtual bool endCDATA()=0
virtual bool parse(const QXmlInputSource &input)=0
void line(double t, double *p, double &x, double &y, double &z)
std::vector< std::string > column
virtual ~QXmlAttributes()
virtual bool is_Digit(const QChar &)
The QXmlAttributes class provides XML attributes.
static msg_handler handler
virtual QString errorString()=0
The QXmlEntityResolver class provides an interface to resolve extern entities contained in XML data...
The QXmlDeclHandler class provides an interface to report declaration content of XML data...
virtual bool resolveEntity(const QString &publicId, const QString &systemId, QXmlInputSource *&ret)=0
virtual ~QXmlLexicalHandler()
virtual ~QXmlDeclHandler()
virtual void setProperty(const QString &name, void *value)=0
virtual void setFeature(const QString &name, bool value)=0
virtual bool is_NameChar(const QChar &)
virtual ~QXmlEntityResolver()
virtual bool internalEntityDecl(const QString &name, const QString &value)=0
virtual bool startPrefixMapping(const QString &prefix, const QString &uri)=0
virtual void setDocumentLocator(QXmlLocator *locator)=0
def parent(G, child, parent_type)
cet::coded_exception< error, detail::translate > exception
The QXmlParseException class is used to report errors with the QXmlErrorHandler interface.
virtual bool externalEntityDecl(const QString &name, const QString &publicId, const QString &systemId)=0
virtual bool is_NameBeginning(const QChar &)
QXmlErrorHandler * errorHnd
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)=0
virtual bool fatalError(const QXmlParseException &exception)=0