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

📄 sax2xmlreaderimpl.hpp

📁 经典开源游戏glest的源代码
💻 HPP
📖 第 1 页 / 共 5 页
字号:
      * @param elemDecl A const reference to the object containing element      *                 declaration information.      * @param urlId    An id referring to the namespace prefix, if      *                 namespaces setting is switched on.      * @param isRoot   A flag indicating whether this element was the      *                 root element.      * @param elemPrefix A const pointer to a Unicode string containing      *                   the namespace prefix for this element. Applicable      *                   only when namespace processing is enabled.      * @see DocumentHandler#endElement      */    virtual void endElement    (        const   XMLElementDecl& elemDecl        , const unsigned int    urlId        , const bool            isRoot        , const XMLCh* const    elemPrefix=0    );    /**      * This method is used to indicate that an end of an entity reference      * was just scanned.      *      * <p>If any advanced callback handlers are installed, the      * corresponding 'endEnityReference' method is invoked.</p>      *      * @param entDecl A const reference to the object containing the      *                entity declaration information.      */    virtual void endEntityReference    (        const   XMLEntityDecl&  entDecl    );    /**      * This method is used to report all the whitespace characters,      * which are determined to be 'ignorable'. This distinction      * between characters is only made, if validation is enabled.      * Corresponding 'ignorableWhitespace' method of the user installed      * SAX Document Handler interface is called.      *      * <p>Any whitespace before content is not reported to the SAX      * Document Handler method, as per the SAX specification.      * However, if any advanced callback handlers are installed, the      * corresponding 'ignorableWhitespace' method is invoked.</p>      *      * @param chars   A const pointer to a Unicode string representing the      *                ignorable whitespace character data.      * @param length  The length of the Unicode string 'chars'.      * @param cdataSection  A flag indicating if the characters represent      *                      content from the CDATA section.      * @see DocumentHandler#ignorableWhitespace      */    virtual void ignorableWhitespace    (        const   XMLCh* const    chars        , const unsigned int    length        , const bool            cdataSection    );    /**      * This method allows the user installed Document Handler and      * any advanced callback handlers to 'reset' themselves.      */    virtual void resetDocument();    /**      * This method is used to report the start of the parsing process.      * The corresponding user installed SAX Document Handler's method      * 'startDocument' is invoked.      *      * <p>If any advanced callback handlers are installed, then the      * corresponding 'startDocument' method is also called.</p>      *      * @see DocumentHandler#startDocument      */    virtual void startDocument();    /**      * This method is used to report the start of an element. It is      * called at the end of the element, by which time all attributes      * specified are also parsed. The corresponding user installed      * SAX Document Handler's method 'startElement' is invoked.      *      * <p>If any advanced callback handlers are installed, then the      * corresponding 'startElement' method is also called.</p>      *      * @param elemDecl A const reference to the object containing element      *                 declaration information.      * @param urlId    An id referring to the namespace prefix, if      *                 namespaces setting is switched on.      * @param elemPrefix A const pointer to a Unicode string containing      *                   the namespace prefix for this element. Applicable      *                   only when namespace processing is enabled.      * @param attrList  A const reference to the object containing the      *                  list of attributes just scanned for this element.      * @param attrCount A count of number of attributes in the list      *                  specified by the parameter 'attrList'.      * @param isEmpty  A flag indicating whether this is an empty element      *                 or not.      * @param isRoot   A flag indicating whether this element was the      *                 root element.      * @see DocumentHandler#startElement      */    virtual void startElement    (        const   XMLElementDecl&         elemDecl        , const unsigned int            urlId        , const XMLCh* const            elemPrefix        , const RefVectorOf<XMLAttr>&   attrList        , const unsigned int            attrCount        , const bool                    isEmpty        , const bool                    isRoot    );    /**      * This method is used to indicate the start of an entity reference.      *      * <p>If any advanced callback handlers are installed, the      * corresponding 'endEnityReference' method is invoked.</p>      *      * @param entDecl A const reference to the object containing the      *                entity declaration information.      */    virtual void startEntityReference    (        const   XMLEntityDecl&  entDecl    );    /**      * This method is used to report the XML decl scanned by the parser.      * Refer to the XML specification to see the meaning of parameters.      *      * <b><font color="#FF0000">This method is a no-op for this SAX driver      * implementation.</font></b>      *      * @param versionStr A const pointer to a Unicode string representing      *                   version string value.      * @param encodingStr A const pointer to a Unicode string representing      *                    the encoding string value.      * @param standaloneStr A const pointer to a Unicode string      *                      representing the standalone string value.      * @param actualEncodingStr A const pointer to a Unicode string      *                          representing the actual encoding string      *                          value.      */    virtual void XMLDecl    (        const   XMLCh* const    versionStr        , const XMLCh* const    encodingStr        , const XMLCh* const    standaloneStr        , const XMLCh* const    actualEncodingStr    );    //@}    // -----------------------------------------------------------------------    //  Implementation of the XMLErrorReporter interface    // -----------------------------------------------------------------------    /** @name Implementation of the XMLErrorReporter Interface. */    //@{    /**      * This method is used to report back errors found while parsing the      * XML file. The driver will call the corresponding user installed      * SAX Error Handler methods: 'fatal', 'error', 'warning' depending      * on the severity of the error. This classification is defined by      * the XML specification.      *      * @param errCode An integer code for the error.      * @param msgDomain A const pointer to an Unicode string representing      *                  the message domain to use.      * @param errType An enumeration classifying the severity of the error.      * @param errorText A const pointer to an Unicode string representing      *                  the text of the error message.      * @param systemId  A const pointer to an Unicode string representing      *                  the system id of the XML file where this error      *                  was discovered.      * @param publicId  A const pointer to an Unicode string representing      *                  the public id of the XML file where this error      *                  was discovered.      * @param lineNum   The line number where the error occurred.      * @param colNum    The column number where the error occurred.      * @see ErrorHandler      */    virtual void error    (        const   unsigned int                errCode        , const XMLCh* const                msgDomain        , const XMLErrorReporter::ErrTypes  errType        , const XMLCh* const                errorText        , const XMLCh* const                systemId        , const XMLCh* const                publicId        , const XMLSSize_t                   lineNum        , const XMLSSize_t                   colNum    );    /**      * This method allows the user installed Error Handler      * callback to 'reset' itself.      *      * <b><font color="#FF0000">This method is a no-op for this SAX driver      * implementation.</font></b>      *      */    virtual void resetErrors();    //@}    // -----------------------------------------------------------------------    //  Implementation of the XMLEntityHandler interface    // -----------------------------------------------------------------------    /** @name Implementation of the XMLEntityHandler Interface. */    //@{    /**      * This method is used to indicate the end of parsing of an external      * entity file.      *      * <b><font color="#FF0000">This method is a no-op for this SAX driver      * implementation.</font></b>      *      * @param inputSource A const reference to the InputSource object      *                    which points to the XML file being parsed.      * @see InputSource      */    virtual void endInputSource(const InputSource& inputSource);    /**      * This method allows an installed XMLEntityHandler to further      * process any system id's of enternal entities encountered in      * the XML file being parsed, such as redirection etc.      *      * <b><font color="#FF0000">This method always returns 'false'      * for this SAX driver implementation.</font></b>      *      * @param systemId  A const pointer to an Unicode string representing      *                  the system id scanned by the parser.      * @param toFill    A pointer to a buffer in which the application      *                  processed system id is stored.      * @return 'true', if any processing is done, 'false' otherwise.      */    virtual bool expandSystemId    (        const   XMLCh* const    systemId        ,       XMLBuffer&      toFill    );    /**      * This method allows the installed XMLEntityHandler to reset      * itself.      *      * <b><font color="#FF0000">This method is a no-op for this SAX driver      * implementation.</font></b>      */    virtual void resetEntities();    /**      * This method allows a user installed entity handler to further      * process any pointers to external entities. The applications      * can implement 'redirection' via this callback. The driver      * should call the SAX EntityHandler 'resolveEntity' method.      *      * @deprecated This method is no longer called (the other resolveEntity one is).      *      * @param publicId A const pointer to a Unicode string representing the      *                 public id of the entity just parsed.      * @param systemId A const pointer to a Unicode string representing the      *                 system id of the entity just parsed.      * @param baseURI  A const pointer to a Unicode string representing the      *                 base URI of the entity just parsed,      *                 or <code>null</code> if there is no base URI.      * @return The value returned by the SAX resolveEntity method or      *         NULL otherwise to indicate no processing was done.      *         The returned InputSource is owned by the parser which is      *         responsible to clean up the memory.      * @see EntityResolver      * @see XMLEntityHandler      */    virtual InputSource* resolveEntity    (        const   XMLCh* const    publicId        , const XMLCh* const    systemId        , const XMLCh* const    baseURI = 0    );    /** Resolve a public/system id      *      * This method allows a user installed entity handler to further      * process any pointers to external entities. The applications can      * implement 'redirection' via this callback.        *      * @param resourceIdentifier An object containing the type of      *        resource to be resolved and the associated data members      *        corresponding to this type.      * @return The value returned by the user installed resolveEntity      *         method or NULL otherwise to indicate no processing was done.      *         The returned InputSource is owned by the parser which is      *         responsible to clean up the memory.      * @see XMLEntityHandler      * @see XMLEntityResolver      */    virtual InputSource* resolveEntity    (        XMLResourceIdentifier* resourceIdentifier    );    /**      * This method is used to indicate the start of parsing an      * external entity file.      *      * <b><font color="#FF0000">This method is a no-op for this SAX driver      * implementation.</font></b>      *      * @param inputSource A const reference to the InputSource object      *                    which points to the external entity      *                    being parsed.      */    virtual void startInputSource(const InputSource& inputSource);    //@}    // -----------------------------------------------------------------------    //  Implementation of the Deprecated DocTypeHandler Interface    // -----------------------------------------------------------------------    /** @name Implementation of the deprecated DocTypeHandler Interface */    //@{    /**      * This method is used to report an attribute definition.      *      * <b><font color="#FF0000">This method is a no-op for this SAX      * driver implementation.</font></b>      *      * @param elemDecl A const reference to the object containing information

⌨️ 快捷键说明

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