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

Home

Readme
Charter
Release Info

Installation
Download
Build Instructions

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

Source Repository
User Mail Archive
Devel Mail Archive

API Docs for SAX and DOM
 

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  * $Id: Parser.hpp 191054 2005-06-17 02:56:35Z jberry $
00019  */
00020 
00021 #ifndef PARSER_HPP
00022 #define PARSER_HPP
00023 
00024 #include <xercesc/util/XercesDefs.hpp>
00025 
00026 XERCES_CPP_NAMESPACE_BEGIN
00027 
00028 class DTDHandler;
00029 class EntityResolver;
00030 class DocumentHandler;
00031 class ErrorHandler;
00032 class InputSource;
00033 
00057 #include <xercesc/util/XercesDefs.hpp>
00058 
00059 class  Parser
00060 {
00061 public:
00063     // -----------------------------------------------------------------------
00064     //  Constructors and Destructor
00065     // -----------------------------------------------------------------------
00067 
00068     Parser()
00069     {
00070     }
00072     virtual ~Parser()
00073     {
00074     }
00076 
00077     //-----------------------------------------------------------------------
00078     // The parser interface
00079     //-----------------------------------------------------------------------
00098     virtual void setEntityResolver(EntityResolver* const resolver) = 0;
00099 
00115     virtual void setDTDHandler(DTDHandler* const handler) = 0;
00116 
00133     virtual void setDocumentHandler(DocumentHandler* const handler) = 0;
00134 
00152     virtual void setErrorHandler(ErrorHandler* const handler) = 0;
00153 
00179     virtual void parse
00180     (
00181         const   InputSource&    source
00182     ) = 0;
00183 
00203     virtual void parse
00204     (
00205         const   XMLCh* const    systemId
00206     ) = 0;
00207 
00227     virtual void parse
00228     (
00229         const   char* const     systemId
00230     ) = 0;
00232 
00233 
00234 private :
00235     /* The copy constructor, you cannot call this directly */
00236     Parser(const Parser&);
00237 
00238     /* The assignment operator, you cannot call this directly */
00239     Parser& operator=(const Parser&);
00240 };
00241 
00242 XERCES_CPP_NAMESPACE_END
00243 
00244 #endif


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