⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qxmlreader.3qt

📁 Qt/Embedded是一个多平台的C++图形用户界面应用程序框架
💻 3QT
字号:
.TH QXmlReader 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQXmlReader \- Interface for XML readers (i.e. parsers)<h1 align=center>QXmlReader Class Reference.br<small>[ XML module ]</small></h1>.br.PP\fC#include <qxml.h>\fR.PPInherited by QXmlSimpleReader..PP.SS "Public Members".in +1c.ti -1c.BI "virtual bool \fBfeature\fR ( const QString & " "name" ", bool * " "ok" " = 0 ) const".br.ti -1c.BI "virtual void \fBsetFeature\fR ( const QString & " "name" ", bool value ) ".br.ti -1c.BI "virtual bool \fBhasFeature\fR ( const QString & name ) const".br.ti -1c.BI "virtual void* \fBproperty\fR ( const QString & " "name" ", bool * " "ok" " = 0 ) const".br.ti -1c.BI "virtual void \fBsetProperty\fR ( const QString & " "name" ", void * value ) ".br.ti -1c.BI "virtual bool \fBhasProperty\fR ( const QString & name ) const".br.ti -1c.BI "virtual void \fBsetEntityResolver\fR ( QXmlEntityResolver * handler ) ".br.ti -1c.BI "virtual QXmlEntityResolver* \fBentityResolver\fR () const".br.ti -1c.BI "virtual void \fBsetDTDHandler\fR ( QXmlDTDHandler * handler ) ".br.ti -1c.BI "virtual QXmlDTDHandler* \fBDTDHandler\fR () const".br.ti -1c.BI "virtual void \fBsetContentHandler\fR ( QXmlContentHandler * handler ) ".br.ti -1c.BI "virtual QXmlContentHandler* \fBcontentHandler\fR () const".br.ti -1c.BI "virtual void \fBsetErrorHandler\fR ( QXmlErrorHandler * handler ) ".br.ti -1c.BI "virtual QXmlErrorHandler* \fBerrorHandler\fR () const".br.ti -1c.BI "virtual void \fBsetLexicalHandler\fR ( QXmlLexicalHandler * handler ) ".br.ti -1c.BI "virtual QXmlLexicalHandler* \fBlexicalHandler\fR () const".br.ti -1c.BI "virtual void \fBsetDeclHandler\fR ( QXmlDeclHandler * handler ) ".br.ti -1c.BI "virtual QXmlDeclHandler* \fBdeclHandler\fR () const".br.ti -1c.BI "virtual bool \fBparse\fR ( const QXmlInputSource & input ) ".br.in -1c.SH DESCRIPTIONThe QXmlReader class provides an interface for XML readers (i.e. parsers)..PPThis abstract class describes an interface for all XML readers in Qt. At the moment there is only one implementation of a reader included in the XML module of Qt (QXmlSimpleReader). In future releases there might be more readers with different properties available (e.g. a validating parser)..PPThe design of the XML classes follow the SAX2 java interface. It was adopted to fit into the Qt naming conventions; so it should be very easy for anybody who has worked with SAX2 to get started with the Qt XML classes..PPAll readers use the class QXmlInputSource to read the input document from. Since you are normally interested in certain contents of the XML document, the reader reports those contents through special handler classes (QXmlDTDHandler, QXmlDeclHandler, QXmlContentHandler, QXmlEntityResolver, QXmlErrorHandler and QXmlLexicalHandler)..PPYou have to subclass these classes. Since the handler classes describe only interfaces you must implement all functions; there is a class (QXmlDefaultHandler) to make this easier; it implements a default behaviour (do nothing) for all functions..PPFor getting started see also the Quick start..PPSee also QXmlSimpleReader..SH MEMBER FUNCTION DOCUMENTATION.SH "QXmlDTDHandler* QXmlReader::DTDHandler () const \fC[virtual]\fR"Returns the DTD handler or 0 if none was set..PPSee also setDTDHandler()..PPReimplemented in QXmlSimpleReader..SH "QXmlContentHandler* QXmlReader::contentHandler () const \fC[virtual]\fR"Returns the content handler or 0 if none was set..PPSee also setContentHandler()..PPReimplemented in QXmlSimpleReader..SH "QXmlDeclHandler* QXmlReader::declHandler () const \fC[virtual]\fR"Returns the declaration handler or 0 if none was set..PPSee also setDeclHandler()..PPReimplemented in QXmlSimpleReader..SH "QXmlEntityResolver* QXmlReader::entityResolver () const \fC[virtual]\fR"Returns the entity resolver or 0 if none was set..PPSee also setEntityResolver()..PPReimplemented in QXmlSimpleReader..SH "QXmlErrorHandler* QXmlReader::errorHandler () const \fC[virtual]\fR"Returns the error handler or 0 if none was set.PPSee also setErrorHandler()..PPReimplemented in QXmlSimpleReader..SH "bool QXmlReader::feature ( const QString & name, bool * ok = 0 ) const \fC[virtual]\fR"If the reader has the feature \fIname,\fR this function returns the value of the feature..PPIf the reader has not the feature \fIname,\fR the return value may be anything..PPIf \fIok\fR is not 0, then \fIok\fR is set to TRUE if the reader has the feature \fIname,\fR otherwise \fIok\fR is set to FALSE..PPSee also setFeature() and hasFeature()..PPReimplemented in QXmlSimpleReader..SH "bool QXmlReader::hasFeature ( const QString & name ) const \fC[virtual]\fR"Returns \fCTRUE\fR if the reader has the feature \fIname,\fR otherwise FALSE..PPSee also feature() and setFeature()..PPReimplemented in QXmlSimpleReader..SH "bool QXmlReader::hasProperty ( const QString & name ) const \fC[virtual]\fR"Returns TRUE if the reader has the property \fIname,\fR otherwise FALSE..PPSee also property() and setProperty()..PPReimplemented in QXmlSimpleReader..SH "QXmlLexicalHandler* QXmlReader::lexicalHandler () const \fC[virtual]\fR"Returns the lexical handler or 0 if none was set..PPSee also setLexicalHandler()..PPReimplemented in QXmlSimpleReader..SH "bool QXmlReader::parse ( const QXmlInputSource & input ) \fC[virtual]\fR"Parses the XML document \fIinput.\fR Returns TRUE if the parsing was successful, otherwise FALSE..PPReimplemented in QXmlSimpleReader..SH "void* QXmlReader::property ( const QString & name, bool * ok = 0 ) const \fC[virtual]\fR"If the reader has the property \fIname,\fR this function returns the value of the property..PPIf the reader has not the property \fIname,\fR the return value is 0..PPIf \fIok\fR is not 0, then \fIok\fR is set to TRUE if the reader has the property \fIname,\fR otherwise \fIok\fR is set to FALSE..PPSee also setProperty() and hasProperty()..PPReimplemented in QXmlSimpleReader..SH "void QXmlReader::setContentHandler ( QXmlContentHandler * handler ) \fC[virtual]\fR"Sets the content handler to \fIhandler.\fR.PPSee also contentHandler()..PPReimplemented in QXmlSimpleReader..SH "void QXmlReader::setDTDHandler ( QXmlDTDHandler * handler ) \fC[virtual]\fR"Sets the DTD handler to \fIhandler.\fR.PPSee also DTDHandler()..PPReimplemented in QXmlSimpleReader..SH "void QXmlReader::setDeclHandler ( QXmlDeclHandler * handler ) \fC[virtual]\fR"Sets the declaration handler to \fIhandler.\fR.PPSee also declHandler()..PPReimplemented in QXmlSimpleReader..SH "void QXmlReader::setEntityResolver ( QXmlEntityResolver * handler ) \fC[virtual]\fR"Sets the entity resolver to \fIhandler.\fR.PPSee also entityResolver()..PPReimplemented in QXmlSimpleReader..SH "void QXmlReader::setErrorHandler ( QXmlErrorHandler * handler ) \fC[virtual]\fR"Sets the error handler to \fIhandler.\fR.PPSee also errorHandler()..PPReimplemented in QXmlSimpleReader..SH "void QXmlReader::setFeature ( const QString & name, bool value ) \fC[virtual]\fR"Sets the feature \fIname\fR to \fIvalue.\fR If the reader has not the feature \fIname,\fR this value is ignored..PPSee also feature() and hasFeature()..PPReimplemented in QXmlSimpleReader..SH "void QXmlReader::setLexicalHandler ( QXmlLexicalHandler * handler ) \fC[virtual]\fR"Sets the lexical handler to \fIhandler.\fR.PPSee also lexicalHandler()..PPReimplemented in QXmlSimpleReader..SH "void QXmlReader::setProperty ( const QString & name, void * value ) \fC[virtual]\fR"Sets the property \fIname\fR to \fIvalue.\fR If the reader has not the property \fIname,\fR this value is ignored..PPSee also property() and hasProperty()..PPReimplemented in QXmlSimpleReader..SH "SEE ALSO".BR http://doc.trolltech.com/qxmlreader.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -