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

📄 sax2xmlreaderimpl.hpp

📁 基于属性证书的访问控制源代码,由c++编写,包括openssl,xercesc等
💻 HPP
📖 第 1 页 / 共 5 页
字号:
      *      * If you exited because of an error, then this cleanup will be done      * for you. Its only when you exit the file prematurely of your own      * accord, because you've found what you wanted in the file most      * likely.      *      * @param token A token maintaing state information to maintain      *              internal consistency between invocation of 'parseNext'      *              calls.      */    virtual void parseReset(XMLPScanToken& token) ;    //@}    // -----------------------------------------------------------------------    //  Implementation of the grammar preparsing interface    // -----------------------------------------------------------------------    /** @name Implementation of Grammar preparsing interface's. */    //@{    /**      * Preparse schema grammar (XML Schema, DTD, etc.) via an input source      * object.      *      * This method invokes the preparsing process on a schema grammar XML      * file specified by the SAX InputSource parameter.      *      * <p><b>"Experimental - subject to change"</b></p>      *      * @param source A const reference to the SAX InputSource object which      *               points to the schema grammar file to be preparsed.      * @param grammarType The grammar type (Schema or DTD).      * @param toCache If <code>true</code>, we cache the preparsed grammar,      *                otherwise, no chaching. Default is <code>false</code>.      * @return The preparsed schema grammar object (SchemaGrammar or      *         DTDGrammar). That grammar object is owned by the parser.      *      * @exception SAXException Any SAX exception, possibly      *            wrapping another exception.      * @exception XMLException An exception from the parser or client      *            handler code.      * @exception DOMException A DOM exception as per DOM spec.      *      * @see InputSource#InputSource      */    virtual Grammar* loadGrammar(const InputSource& source,                                 const short grammarType,                                 const bool toCache = false);    /**      * Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL      *      * This method invokes the preparsing process on a schema grammar XML      * file specified by the file path parameter.      *      * <p><b>"Experimental - subject to change"</b></p>      *      * @param systemId A const XMLCh pointer to the Unicode string which      *                 contains the path to the XML grammar file to be      *                 preparsed.      * @param grammarType The grammar type (Schema or DTD).      * @param toCache If <code>true</code>, we cache the preparsed grammar,      *                otherwise, no chaching. Default is <code>false</code>.      * @return The preparsed schema grammar object (SchemaGrammar or      *         DTDGrammar). That grammar object is owned by the parser.      *      * @exception SAXException Any SAX exception, possibly      *            wrapping another exception.      * @exception XMLException An exception from the parser or client      *            handler code.      * @exception DOMException A DOM exception as per DOM spec.      */    virtual Grammar* loadGrammar(const XMLCh* const systemId,                                 const short grammarType,                                 const bool toCache = false);    /**      * Preparse schema grammar (XML Schema, DTD, etc.) via a file path or URL      *      * This method invokes the preparsing process on a schema grammar XML      * file specified by the file path parameter.      *      * <p><b>"Experimental - subject to change"</b></p>      *      * @param systemId A const char pointer to a native string which contains      *                 the path to the XML grammar file to be preparsed.      * @param grammarType The grammar type (Schema or DTD).      * @param toCache If <code>true</code>, we cache the preparsed grammar,      *                otherwise, no chaching. Default is <code>false</code>.      * @return The preparsed schema grammar object (SchemaGrammar or      *         DTDGrammar). That grammar object is owned by the parser.      *      * @exception SAXException Any SAX exception, possibly      *            wrapping another exception.      * @exception XMLException An exception from the parser or client      *            handler code.      * @exception DOMException A DOM exception as per DOM spec.      */    virtual Grammar* loadGrammar(const char* const systemId,                                 const short grammarType,                                 const bool toCache = false);    /**      * Clear the cached grammar pool      */    virtual void resetCachedGrammarPool();    //@}    // -----------------------------------------------------------------------    //  Advanced document handler list maintenance methods    // -----------------------------------------------------------------------    /** @name Advanced document handler list maintenance methods */    //@{    /**      * This method installs the specified 'advanced' document callback      * handler, thereby allowing the user to customize the processing,      * if they choose to do so. Any number of advanced callback handlers      * maybe installed.      *      * <p>The methods in the advanced callback interface represent      * Xerces-C extensions. There is no specification for this interface.</p>      *      * @param toInstall A pointer to the users advanced callback handler.      *      * @see #removeAdvDocHandler      */    virtual void installAdvDocHandler(XMLDocumentHandler* const toInstall) ;    /**      * This method removes the 'advanced' document handler callback from      * the underlying parser scanner. If no handler is installed, advanced      * callbacks are not invoked by the scanner.      * @param toRemove A pointer to the advanced callback handler which      *                 should be removed.      *      * @see #installAdvDocHandler      */    virtual bool removeAdvDocHandler(XMLDocumentHandler* const toRemove) ;    //@}	// -----------------------------------------------------------------------    //  Implementation of the XMLDocumentHandler interface    // -----------------------------------------------------------------------    /** @name Implementation of the XMLDocumentHandler Interface. */    //@{    /**      * This method is used to report all the characters scanned      * by the parser. The driver will invoke the 'characters'      * method of the user installed SAX Document Handler.      *      * <p>If any advanced callback handlers are installed, the      * corresponding 'docCharacters' method will also be invoked.</p>      *      * @param chars   A const pointer to a Unicode string representing the      *                character data.      * @param length  The length of the Unicode string returned in 'chars'.      * @param cdataSection  A flag indicating if the characters represent      *                      content from the CDATA section.      * @see DocumentHandler#characters      */    virtual void docCharacters    (        const   XMLCh* const    chars        , const unsigned int    length        , const bool            cdataSection    );    /**      * This method is used to report any comments scanned by the parser.      * This method is a no-op unless, unless an advanced callback handler      * is installed, in which case the corresponding 'docComment' method      * is invoked.      *      * @param comment A const pointer to a null terminated Unicode      *                string representing the comment text.      */    virtual void docComment    (        const   XMLCh* const    comment    );    /**      * This method is used to report any PI scanned by the parser.      *      * <p>Any PI's occurring before any 'content' are not reported      * to any SAX handler as per the specification. However, all      * PI's within content are reported via the SAX Document Handler's      * 'processingInstruction' method.      *      * <p>If any advanced callback handlers are installed, the      * corresponding 'docPI' method will be invoked.</p>      *      * @param target A const pointer to a Unicode string representing the      *               target of the PI declaration.      * @param data   A const pointer to a Unicode string representing the      *               data of the PI declaration. See the PI production rule      *               in the XML specification for details.      *      * @see DocumentHandler#processingInstruction      */    virtual void docPI    (        const   XMLCh* const    target        , const XMLCh* const    data    );    /**      * This method is used to indicate the end of root element      * was just scanned by the parser. Corresponding 'endDocument'      * method of the user installed SAX Document Handler will also      * be invoked.      *      * <p>In addition, if any advanced callback handlers are installed,      * the corresponding 'endDocument' method is invoked.</p>      *      * @see DocumentHandler#endDocument      */    virtual void endDocument();    /**      * This method is used to indicate the end tag of an element.      * The driver will invoke the corresponding 'endElement' method of      * the SAX Document Handler interface.      *      * <p>If any advanced callback handlers are installed, the      * corresponding 'endElement' method is also invoked.</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 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.

⌨️ 快捷键说明

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