You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2001/06/03 21:26:23 UTC

cvs commit: xml-xerces/c/src/parsers DOMParser.cpp DOMParser.hpp IDOMParser.cpp IDOMParser.hpp SAX2XMLReaderImpl.cpp SAX2XMLReaderImpl.hpp SAXParser.cpp SAXParser.hpp

jberry      01/06/03 12:26:22

  Modified:    c/src/parsers DOMParser.cpp DOMParser.hpp IDOMParser.cpp
                        IDOMParser.hpp SAX2XMLReaderImpl.cpp
                        SAX2XMLReaderImpl.hpp SAXParser.cpp SAXParser.hpp
  Log:
  Add support for querying error count following parse; enables simple parse without requiring error handler.
  
  Revision  Changes    Path
  1.52      +6 -1      xml-xerces/c/src/parsers/DOMParser.cpp
  
  Index: DOMParser.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/DOMParser.cpp,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- DOMParser.cpp	2001/05/28 21:10:36	1.51
  +++ DOMParser.cpp	2001/06/03 19:26:18	1.52
  @@ -59,7 +59,7 @@
   *  handler with the scanner. In these handler methods, appropriate DOM nodes
   *  are created and added to the DOM tree.
   *
  -* $Id: DOMParser.cpp,v 1.51 2001/05/28 21:10:36 tng Exp $
  +* $Id: DOMParser.cpp,v 1.52 2001/06/03 19:26:18 jberry Exp $
   *
   */
   
  @@ -184,6 +184,11 @@
   bool DOMParser::getDoSchema() const
   {
       return fScanner->getDoSchema();
  +}
  +
  +int DOMParser::getErrorCount() const
  +{
  +    return fScanner->getErrorCount();
   }
   
   
  
  
  
  1.23      +14 -2     xml-xerces/c/src/parsers/DOMParser.hpp
  
  Index: DOMParser.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/DOMParser.hpp,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- DOMParser.hpp	2001/05/11 13:26:21	1.22
  +++ DOMParser.hpp	2001/06/03 19:26:18	1.23
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: DOMParser.hpp,v 1.22 2001/05/11 13:26:21 tng Exp $
  + * $Id: DOMParser.hpp,v 1.23 2001/06/03 19:26:18 jberry Exp $
    *
    */
   
  @@ -234,6 +234,19 @@
         */
       bool getDoSchema() const;
   
  +    /** Get error count from the last parse operation.
  +      *
  +      * This method returns the error count from the last parse
  +      * operation. Note that this count is actually stored in the
  +      * scanner, so this method simply returns what the
  +      * scanner reports.
  +      *
  +      * @return number of errors encountered during the latest
  +      *			parse operation.
  +      *
  +      */
  +    int getErrorCount() const;
  +
       /** Get the 'do namespaces' flag
         *
         * This method returns the state of the parser's namespace processing
  @@ -326,7 +339,6 @@
         *
         */
       bool getToCreateXMLDeclTypeNode() const;
  -
   
       //@}
   
  
  
  
  1.4       +7 -1      xml-xerces/c/src/parsers/IDOMParser.cpp
  
  Index: IDOMParser.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/IDOMParser.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IDOMParser.cpp	2001/05/28 21:10:36	1.3
  +++ IDOMParser.cpp	2001/06/03 19:26:18	1.4
  @@ -59,7 +59,7 @@
   *  handler with the scanner. In these handler methods, appropriate IDOM nodes
   *  are created and added to the DOM tree.
   *
  -* $Id: IDOMParser.cpp,v 1.3 2001/05/28 21:10:36 tng Exp $
  +* $Id: IDOMParser.cpp,v 1.4 2001/06/03 19:26:18 jberry Exp $
   *
   */
   
  @@ -192,6 +192,12 @@
   {
       return fScanner->getDoSchema();
   }
  +
  +int IDOMParser::getErrorCount() const
  +{
  +    return fScanner->getErrorCount();
  +}
  +
   
   
   // ---------------------------------------------------------------------------
  
  
  
  1.2       +14 -1     xml-xerces/c/src/parsers/IDOMParser.hpp
  
  Index: IDOMParser.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/IDOMParser.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IDOMParser.hpp	2001/05/17 15:30:06	1.1
  +++ IDOMParser.hpp	2001/06/03 19:26:19	1.2
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDOMParser.hpp,v 1.1 2001/05/17 15:30:06 tng Exp $
  + * $Id: IDOMParser.hpp,v 1.2 2001/06/03 19:26:19 jberry Exp $
    *
    */
   
  @@ -235,6 +235,19 @@
         * @see #setDoSchema
         */
       bool getDoSchema() const;
  +
  +    /** Get error count from the last parse operation.
  +      *
  +      * This method returns the error count from the last parse
  +      * operation. Note that this count is actually stored in the
  +      * scanner, so this method simply returns what the
  +      * scanner reports.
  +      *
  +      * @return number of errors encountered during the latest
  +      *			parse operation.
  +      *
  +      */
  +    int getErrorCount() const;
   
       /** Get the 'do namespaces' flag
         *
  
  
  
  1.13      +8 -0      xml-xerces/c/src/parsers/SAX2XMLReaderImpl.cpp
  
  Index: SAX2XMLReaderImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/SAX2XMLReaderImpl.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- SAX2XMLReaderImpl.cpp	2001/05/11 13:26:21	1.12
  +++ SAX2XMLReaderImpl.cpp	2001/06/03 19:26:19	1.13
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAX2XMLReaderImpl.cpp,v $
  + * Revision 1.13  2001/06/03 19:26:19  jberry
  + * Add support for querying error count following parse; enables simple parse without requiring error handler.
  + *
    * Revision 1.12  2001/05/11 13:26:21  tng
    * Copyright update.
    *
  @@ -344,6 +347,11 @@
   // ---------------------------------------------------------------------------
   //  SAX2XMLReader Interface
   // ---------------------------------------------------------------------------
  +int SAX2XMLReaderImpl::getErrorCount() const
  +{
  +    return fScanner->getErrorCount();
  +}
  +
   void SAX2XMLReaderImpl::setContentHandler(ContentHandler* const handler)
   {
   	fDocHandler = handler;
  
  
  
  1.9       +15 -0     xml-xerces/c/src/parsers/SAX2XMLReaderImpl.hpp
  
  Index: SAX2XMLReaderImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/SAX2XMLReaderImpl.hpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- SAX2XMLReaderImpl.hpp	2001/05/11 13:26:21	1.8
  +++ SAX2XMLReaderImpl.hpp	2001/06/03 19:26:19	1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAX2XMLReaderImpl.hpp,v $
  + * Revision 1.9  2001/06/03 19:26:19  jberry
  + * Add support for querying error count following parse; enables simple parse without requiring error handler.
  + *
    * Revision 1.8  2001/05/11 13:26:21  tng
    * Copyright update.
    *
  @@ -393,6 +396,18 @@
   
       /** @name Getter methods */
       //@{
  +
  +    /** Get error count from the last parse operation.
  +      *
  +      * This method returns the error count from the last parse
  +      * operation. Note that this count is actually stored in the
  +      * scanner, so this method simply returns what the
  +      * scanner reports.
  +      *
  +      * @return number of errors encountered during the latest
  +      *			parse operation.
  +      */
  +    int getErrorCount() const;
   
       /**
         * This method returns the installed content handler.
  
  
  
  1.20      +8 -0      xml-xerces/c/src/parsers/SAXParser.cpp
  
  Index: SAXParser.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/SAXParser.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- SAXParser.cpp	2001/05/11 13:26:22	1.19
  +++ SAXParser.cpp	2001/06/03 19:26:20	1.20
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAXParser.cpp,v $
  + * Revision 1.20  2001/06/03 19:26:20  jberry
  + * Add support for querying error count following parse; enables simple parse without requiring error handler.
  + *
    * Revision 1.19  2001/05/11 13:26:22  tng
    * Copyright update.
    *
  @@ -314,6 +317,11 @@
   bool SAXParser::getDoSchema() const
   {
       return fScanner->getDoSchema();
  +}
  +
  +int SAXParser::getErrorCount() const
  +{
  +    return fScanner->getErrorCount();
   }
   
   
  
  
  
  1.16      +15 -0     xml-xerces/c/src/parsers/SAXParser.hpp
  
  Index: SAXParser.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/parsers/SAXParser.hpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SAXParser.hpp	2001/05/11 13:26:22	1.15
  +++ SAXParser.hpp	2001/06/03 19:26:20	1.16
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: SAXParser.hpp,v $
  + * Revision 1.16  2001/06/03 19:26:20  jberry
  + * Add support for querying error count following parse; enables simple parse without requiring error handler.
  + *
    * Revision 1.15  2001/05/11 13:26:22  tng
    * Copyright update.
    *
  @@ -270,6 +273,18 @@
         * @see #setDoSchema
         */
       bool getDoSchema() const;
  +
  +    /** Get error count from the last parse operation.
  +      *
  +      * This method returns the error count from the last parse
  +      * operation. Note that this count is actually stored in the
  +      * scanner, so this method simply returns what the
  +      * scanner reports.
  +      *
  +      * @return number of errors encountered during the latest
  +      *			parse operation.
  +      */
  +    int getErrorCount() const;
   
       /**
         * This method returns the state of the parser's namespace
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org