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

📄 dombuilderimpl.hpp

📁 经典开源游戏glest的源代码
💻 HPP
📖 第 1 页 / 共 3 页
字号:
    virtual Grammar* getRootGrammar() const;    /**     * Returns the string corresponding to a URI id from the URI string pool.     *     * @param uriId id of the string in the URI string pool.     * @return URI string corresponding to the URI id.     */    virtual const XMLCh* getURIText(unsigned int uriId) const;    /**      * Clear the cached grammar pool      */    virtual void resetCachedGrammarPool();    /**      * Returns the current src offset within the input source.      * To be used only while parsing is in progress.      *      * @return offset within the input source      */    virtual unsigned int getSrcOffset() const;    //@}    // -----------------------------------------------------------------------    //  Implementation of the XMLErrorReporter interface.    // -----------------------------------------------------------------------    /** @name Implementation of the XMLErrorReporter interface. */    //@{    /** Handle errors reported from the parser      *      * This method is used to report back errors found while parsing the      * XML file. This method is also borrowed from the SAX specification.      * It calls the corresponding user installed Error Handler method:      * '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 DOMErrorHandler      */    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    );    /** Reset any error data before a new parse     *      * This method allows the user installed Error Handler callback to      * 'reset' itself.      *      * <b><font color="#FF0000">This method is a no-op for this DOM      * implementation.</font></b>      */    virtual void resetErrors();    //@}    // -----------------------------------------------------------------------    //  Implementation of the XMLEntityHandler interface.    // -----------------------------------------------------------------------    /** @name Implementation of the XMLEntityHandler interface. */    //@{    /** Handle an end of input source event      *      * 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 DOM      * 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);    /** Expand a system id      *      * 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 DOM 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    );    /** Reset any entity handler information      *      * This method allows the installed XMLEntityHandler to reset      * itself.      *      * <b><font color="#FF0000">This method is a no-op for this DOM      * implementation.</font></b>      */    virtual void resetEntities();    /** 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. This method is also      * borrowed from the SAX specification.      *      * @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 user installed resolveEntity      *         method or NULL otherwise to indicate no processing was done.      *         The returned InputSource is owned by the DOMBuilder which is      *         responsible to clean up the memory.      * @see DOMEntityResolver      * @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    );    /** Handle a 'start input source' event      *      * 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 DOM parse      * 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);    //@}private :    // -----------------------------------------------------------------------    //  Initialize/Cleanup methods    // -----------------------------------------------------------------------    void resetParse();    // -----------------------------------------------------------------------    //  Private data members    //    //  fEntityResolver    //      The installed DOM entity resolver, if any. Null if none.    //    //  fErrorHandler    //      The installed DOM error handler, if any. Null if none.    //    //  fFilter    //      The installed application filter, if any. Null if none.    //    //  fCharsetOverridesXMLEncoding    //      Indicates if the "charset-overrides-xml-encoding" is set or not    //    //  fUserAdoptsDocument    //      The DOMDocument ownership has been transferred to application    //      If set to true, the parser does not own the document anymore    //      and thus will not release its memory.    //-----------------------------------------------------------------------    bool                        fAutoValidation;    bool                        fValidation;    DOMEntityResolver*          fEntityResolver;    XMLEntityResolver*          fXMLEntityResolver;    DOMErrorHandler*            fErrorHandler;    DOMBuilderFilter*           fFilter;    bool                        fCharsetOverridesXMLEncoding;    bool                        fUserAdoptsDocument;    // -----------------------------------------------------------------------    // Unimplemented constructors and operators    // -----------------------------------------------------------------------    DOMBuilderImpl(const DOMBuilderImpl &);    DOMBuilderImpl & operator = (const DOMBuilderImpl &);};// ---------------------------------------------------------------------------//  DOMBuilderImpl: Handlers for the XMLEntityHandler interface// ---------------------------------------------------------------------------inline void DOMBuilderImpl::endInputSource(const InputSource&){    // The DOM entity resolver doesn't handle this}inline bool DOMBuilderImpl::expandSystemId(const XMLCh* const, XMLBuffer&){    // The DOM entity resolver doesn't handle this    return false;}inline void DOMBuilderImpl::resetEntities(){    // Nothing to do on this one}inline void DOMBuilderImpl::startInputSource(const InputSource&){    // The DOM entity resolver doesn't handle this}// ---------------------------------------------------------------------------//  DOMBuilderImpl: Getter methods// ---------------------------------------------------------------------------inline DOMErrorHandler* DOMBuilderImpl::getErrorHandler(){    return fErrorHandler;}inline const DOMErrorHandler* DOMBuilderImpl::getErrorHandler() const{    return fErrorHandler;}inline DOMEntityResolver* DOMBuilderImpl::getEntityResolver(){    return fEntityResolver;}inline const DOMEntityResolver* DOMBuilderImpl::getEntityResolver() const{    return fEntityResolver;}inline XMLEntityResolver* DOMBuilderImpl::getXMLEntityResolver(){    return fXMLEntityResolver;}inline const XMLEntityResolver* DOMBuilderImpl::getXMLEntityResolver() const{    return fXMLEntityResolver;}inline DOMBuilderFilter* DOMBuilderImpl::getFilter(){    return fFilter;}inline const DOMBuilderFilter* DOMBuilderImpl::getFilter() const{    return fFilter;}XERCES_CPP_NAMESPACE_END#endif

⌨️ 快捷键说明

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