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  

DOMInputSource.hpp

Go to the documentation of this file.
00001 #ifndef DOMInputSource_HEADER_GUARD_
00002 #define DOMInputSource_HEADER_GUARD_
00003 
00004 /*
00005  * Copyright 2002,2004 The Apache Software Foundation.
00006  * 
00007  * Licensed under the Apache License, Version 2.0 (the "License");
00008  * you may not use this file except in compliance with the License.
00009  * You may obtain a copy of the License at
00010  * 
00011  *      http://www.apache.org/licenses/LICENSE-2.0
00012  * 
00013  * Unless required by applicable law or agreed to in writing, software
00014  * distributed under the License is distributed on an "AS IS" BASIS,
00015  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016  * See the License for the specific language governing permissions and
00017  * limitations under the License.
00018  */
00019 
00020 /*
00021  * $Id: DOMInputSource.hpp,v 1.11 2004/09/08 13:55:39 peiyongz Exp $
00022  */
00023 
00024 
00025 #include <xercesc/util/XercesDefs.hpp>
00026 
00027 XERCES_CPP_NAMESPACE_BEGIN
00028 
00029 
00030 class BinInputStream;
00031 
00032 
00059 class  DOMInputSource
00060 {
00061 protected:
00062     // -----------------------------------------------------------------------
00063     //  Hidden constructors
00064     // -----------------------------------------------------------------------
00067     DOMInputSource() {};
00069 
00070 private:
00071     // -----------------------------------------------------------------------
00072     // Unimplemented constructors and operators
00073     // -----------------------------------------------------------------------
00076     DOMInputSource(const DOMInputSource &);
00077     DOMInputSource & operator = (const DOMInputSource &);
00079 
00080 public:
00081     // -----------------------------------------------------------------------
00082     //  All constructors are hidden, just the destructor is available
00083     // -----------------------------------------------------------------------
00090     virtual ~DOMInputSource() {};
00092 
00093     // -----------------------------------------------------------------------
00094     //  Virtual DOMInputSource interface
00095     // -----------------------------------------------------------------------
00098     // -----------------------------------------------------------------------
00099     //  Getter methods
00100     // -----------------------------------------------------------------------
00113     virtual const XMLCh* getEncoding() const = 0;
00114 
00115 
00125     virtual const XMLCh* getPublicId() const = 0;
00126 
00127 
00139     virtual const XMLCh* getSystemId() const = 0;
00140 
00141 
00153     virtual const XMLCh* getBaseURI() const = 0;
00154 
00155     // -----------------------------------------------------------------------
00156     //  Setter methods
00157     // -----------------------------------------------------------------------
00172     virtual void setEncoding(const XMLCh* const encodingStr) = 0;
00173 
00174 
00187     virtual void setPublicId(const XMLCh* const publicId) = 0;
00188 
00204     virtual void setSystemId(const XMLCh* const systemId) = 0;
00205 
00217     virtual void setBaseURI(const XMLCh* const baseURI) = 0;
00219 
00220     // -----------------------------------------------------------------------
00221     //  Non-standard Extension
00222     // -----------------------------------------------------------------------
00225 
00238     virtual BinInputStream* makeStream() const = 0;
00239 
00251     virtual void setIssueFatalErrorIfNotFound(const bool flag) = 0;
00252 
00253 
00264     virtual bool getIssueFatalErrorIfNotFound() const = 0;
00265 
00272     virtual void              release() = 0;
00274 };
00275 
00276 
00277 XERCES_CPP_NAMESPACE_END
00278 
00279 #endif


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