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

📄 qxml-h.html

📁 QT 下载资料仅供参考
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/reggie/tmp/qt-3.0-reggie-5401/qt-x11-commercial-3.0.5/include/qxml.h:1 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>qxml.h Include File</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr bgcolor="#E5E5E5"><td valign=center> <a href="index.html"><font color="#004faf">Home</font></a> | <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a> | <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a> | <a href="annotated.html"><font color="#004faf">Annotated</font></a> | <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a> | <a href="functions.html"><font color="#004faf">Functions</font></a></td><td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>qxml.h</h1><p>This is the verbatim text of the qxml.h include file. It is provided only for illustration; the copyright remains with Trolltech.<hr><pre>/****************************************************************************** $Id$**** Definition of QXmlSimpleReader and related classes.**** Created : 000518**** Copyright (C) 1992-2002 Trolltech AS.  All rights reserved.**** This file is part of the xml module of the Qt GUI Toolkit.**** This file may be distributed under the terms of the Q Public License** as defined by Trolltech AS of Norway and appearing in the file** LICENSE.QPL included in the packaging of this file.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** Licensees holding valid Qt Enterprise Edition licenses may use this** file in accordance with the Qt Commercial License Agreement provided** with the Software.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for**   information about Qt Commercial License Agreements.** See http://www.trolltech.com/qpl/ for QPL licensing information.** See http://www.trolltech.com/gpl/ for GPL licensing information.**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************/#ifndef QXML_H#define QXML_H#ifndef QT_H#include "qtextstream.h"#include "qfile.h"#include "qstring.h"#include "qstringlist.h"#endif // QT_H#if !defined(QT_MODULE_XML) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_XML )#define QM_EXPORT_XML#else#define QM_EXPORT_XML Q_EXPORT#endif#ifndef QT_NO_XMLclass QXmlNamespaceSupport;class QXmlAttributes;class QXmlContentHandler;class QXmlDefaultHandler;class QXmlDTDHandler;class QXmlEntityResolver;class QXmlErrorHandler;class QXmlLexicalHandler;class QXmlDeclHandler;class QXmlInputSource;class QXmlLocator;class QXmlNamespaceSupport;class QXmlParseException;class QXmlReader;class QXmlSimpleReader;class QXmlSimpleReaderPrivate;class QXmlNamespaceSupportPrivate;class QXmlAttributesPrivate;class QXmlInputSourcePrivate;class QXmlParseExceptionPrivate;class QXmlLocatorPrivate;class QXmlDefaultHandlerPrivate;//// SAX Namespace Support//class QM_EXPORT_XML QXmlNamespaceSupport{public:    QXmlNamespaceSupport();    ~QXmlNamespaceSupport();    void setPrefix( const QString&amp;, const QString&amp; );    QString prefix( const QString&amp; ) const;    QString uri( const QString&amp; ) const;    void splitName( const QString&amp;, QString&amp;, QString&amp; ) const;    void processName( const QString&amp;, bool, QString&amp;, QString&amp; ) const;    QStringList prefixes() const;    QStringList prefixes( const QString&amp; ) const;    void pushContext();    void popContext();    void reset();private:    QXmlNamespaceSupportPrivate *d;};//// SAX Attributes//class QM_EXPORT_XML QXmlAttributes{public:    QXmlAttributes() {}    virtual ~QXmlAttributes() {}    int index( const QString&amp; qName ) const;    int index( const QString&amp; uri, const QString&amp; localPart ) const;    int length() const;    int count() const;    QString localName( int index ) const;    QString qName( int index ) const;    QString uri( int index ) const;    QString type( int index ) const;    QString type( const QString&amp; qName ) const;    QString type( const QString&amp; uri, const QString&amp; localName ) const;    QString value( int index ) const;    QString value( const QString&amp; qName ) const;    QString value( const QString&amp; uri, const QString&amp; localName ) const;    void clear();    void append( const QString &amp;qName, const QString &amp;uri, const QString &amp;localPart, const QString &amp;value );private:    QStringList qnameList;    QStringList uriList;    QStringList localnameList;    QStringList valueList;    QXmlAttributesPrivate *d;};//// SAX Input Source//class QM_EXPORT_XML QXmlInputSource{public:    QXmlInputSource();    QXmlInputSource( QIODevice *dev );    QXmlInputSource( QFile&amp; file ); // obsolete    QXmlInputSource( QTextStream&amp; stream ); // obsolete    virtual ~QXmlInputSource();    virtual void setData( const QString&amp; dat );    virtual void setData( const QByteArray&amp; dat );    virtual void fetchData();    virtual QString data();    virtual QChar next();    virtual void reset();    static const QChar EndOfData;    static const QChar EndOfDocument;protected:    virtual QString fromRawData( const QByteArray &amp;data, bool beginning = FALSE );private:    void init();    QIODevice *inputDevice;    QTextStream *inputStream;    QString str;    const QChar *unicode;    int pos;    int length;    bool nextReturnedEndOfData;    QTextDecoder *encMapper;    QXmlInputSourcePrivate *d;};//// SAX Exception Classes//class QM_EXPORT_XML QXmlParseException{public:    QXmlParseException( const QString&amp; name="", int c=-1, int l=-1, const QString&amp; p="", const QString&amp; s="" )	: msg( name ), column( c ), line( l ), pub( p ), sys( s )    { }    int columnNumber() const;    int lineNumber() const;    QString publicId() const;    QString systemId() const;    QString message() const;private:    QString msg;    int column;    int line;    QString pub;    QString sys;    QXmlParseExceptionPrivate *d;};//// XML Reader//class QM_EXPORT_XML QXmlReader{public:    virtual bool feature( const QString&amp; name, bool *ok = 0 ) const = 0;    virtual void setFeature( const QString&amp; name, bool value ) = 0;    virtual bool hasFeature( const QString&amp; name ) const = 0;    virtual void* property( const QString&amp; name, bool *ok = 0 ) const = 0;    virtual void setProperty( const QString&amp; name, void* value ) = 0;    virtual bool hasProperty( const QString&amp; name ) const = 0;    virtual void setEntityResolver( QXmlEntityResolver* handler ) = 0;    virtual QXmlEntityResolver* entityResolver() const = 0;    virtual void setDTDHandler( QXmlDTDHandler* handler ) = 0;    virtual QXmlDTDHandler* DTDHandler() const = 0;    virtual void setContentHandler( QXmlContentHandler* handler ) = 0;    virtual QXmlContentHandler* contentHandler() const = 0;    virtual void setErrorHandler( QXmlErrorHandler* handler ) = 0;    virtual QXmlErrorHandler* errorHandler() const = 0;    virtual void setLexicalHandler( QXmlLexicalHandler* handler ) = 0;    virtual QXmlLexicalHandler* lexicalHandler() const = 0;    virtual void setDeclHandler( QXmlDeclHandler* handler ) = 0;    virtual QXmlDeclHandler* declHandler() const = 0;    virtual bool parse( const QXmlInputSource&amp; input ) = 0;    virtual bool parse( const QXmlInputSource* input ) = 0;};class QM_EXPORT_XML QXmlSimpleReader : public QXmlReader{public:    QXmlSimpleReader();    virtual ~QXmlSimpleReader();    bool feature( const QString&amp; name, bool *ok = 0 ) const;    void setFeature( const QString&amp; name, bool value );    bool hasFeature( const QString&amp; name ) const;    void* property( const QString&amp; name, bool *ok = 0 ) const;    void setProperty( const QString&amp; name, void* value );    bool hasProperty( const QString&amp; name ) const;    void setEntityResolver( QXmlEntityResolver* handler );    QXmlEntityResolver* entityResolver() const;    void setDTDHandler( QXmlDTDHandler* handler );    QXmlDTDHandler* DTDHandler() const;    void setContentHandler( QXmlContentHandler* handler );

⌨️ 快捷键说明

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