http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Parser.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2001,2004 The Apache Software Foundation.
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * $Log: Parser.hpp,v $
00019  * Revision 1.5  2004/09/08 13:56:19  peiyongz
00020  * Apache License Version 2.0
00021  *
00022  * Revision 1.4  2003/03/07 18:10:06  tng
00023  * Return a reference instead of void for operator=
00024  *
00025  * Revision 1.3  2002/11/04 14:56:26  tng
00026  * C++ Namespace Support.
00027  *
00028  * Revision 1.2  2002/07/11 18:29:09  knoaman
00029  * Grammar caching/preparsing - initial implementation.
00030  *
00031  * Revision 1.1.1.1  2002/02/01 22:22:08  peiyongz
00032  * sane_include
00033  *
00034  * Revision 1.8  2001/05/11 13:26:24  tng
00035  * Copyright update.
00036  *
00037  * Revision 1.7  2001/03/21 21:56:10  tng
00038  * Schema: Add Schema Grammar, Schema Validator, and split the DTDValidator into DTDValidator, DTDScanner, and DTDGrammar.
00039  *
00040  * Revision 1.6  2000/03/02 19:54:35  roddey
00041  * This checkin includes many changes done while waiting for the
00042  * 1.1.0 code to be finished. I can't list them all here, but a list is
00043  * available elsewhere.
00044  *
00045  * Revision 1.5  2000/02/24 20:12:55  abagchi
00046  * Swat for removing Log from API docs
00047  *
00048  * Revision 1.4  2000/02/12 03:31:55  rahulj
00049  * Removed duplicate CVS Log entries.
00050  *
00051  * Revision 1.3  2000/02/09 01:59:12  abagchi
00052  * Removed private function docs, added parse docs
00053  *
00054  * Revision 1.2  2000/02/06 07:47:58  rahulj
00055  * Year 2K copyright swat.
00056  *
00057  * Revision 1.1.1.1  1999/11/09 01:07:46  twl
00058  * Initial checkin
00059  *
00060  * Revision 1.3  1999/11/08 20:45:02  rahul
00061  * Swat for adding in Product name and CVS comment log variable.
00062  *
00063  */
00064 
00065 #ifndef PARSER_HPP
00066 #define PARSER_HPP
00067 
00068 #include <xercesc/util/XercesDefs.hpp>
00069 
00070 XERCES_CPP_NAMESPACE_BEGIN
00071 
00072 class DTDHandler;
00073 class EntityResolver;
00074 class DocumentHandler;
00075 class ErrorHandler;
00076 class InputSource;
00077 
00101 #include <xercesc/util/XercesDefs.hpp>
00102 
00103 class  Parser
00104 {
00105 public:
00107     // -----------------------------------------------------------------------
00108     //  Constructors and Destructor
00109     // -----------------------------------------------------------------------
00111     /** The default constructor */
00112     Parser()
00113     {
00114     }
00116     virtual ~Parser()
00117     {
00118     }
00120 
00121     //-----------------------------------------------------------------------
00122     // The parser interface
00123     //-----------------------------------------------------------------------
00142     virtual void setEntityResolver(EntityResolver* const resolver) = 0;
00143 
00159     virtual void setDTDHandler(DTDHandler* const handler) = 0;
00160 
00177     virtual void setDocumentHandler(DocumentHandler* const handler) = 0;
00178 
00196     virtual void setErrorHandler(ErrorHandler* const handler) = 0;
00197 
00223     virtual void parse
00224     (
00225         const   InputSource&    source
00226     ) = 0;
00227 
00247     virtual void parse
00248     (
00249         const   XMLCh* const    systemId
00250     ) = 0;
00251 
00271     virtual void parse
00272     (
00273         const   char* const     systemId
00274     ) = 0;
00276 
00277 
00278 private :
00279     /* The copy constructor, you cannot call this directly */
00280     Parser(const Parser&);
00281 
00282     /* The assignment operator, you cannot call this directly */
00283     Parser& operator=(const Parser&);
00284 };
00285 
00286 XERCES_CPP_NAMESPACE_END
00287 
00288 #endif


Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.