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  

Wrapper4InputSource.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002,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: Wrapper4InputSource.hpp,v 1.10 2004/09/08 13:55:58 peiyongz Exp $
00019  */
00020 
00021 
00022 #ifndef WRAPPER4INPUTSOURCE_HPP
00023 #define WRAPPER4INPUTSOURCE_HPP
00024 
00025 #include <xercesc/dom/DOMInputSource.hpp>
00026 #include <xercesc/util/PlatformUtils.hpp>
00027 
00028 XERCES_CPP_NAMESPACE_BEGIN
00029 
00030 class InputSource;
00031 
00032 
00036 class  Wrapper4InputSource: public DOMInputSource
00037 {
00038 public:
00041 
00053     Wrapper4InputSource(InputSource* const inputSource
00054                         , const bool adoptFlag = true
00055                         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00056 
00061     virtual ~Wrapper4InputSource();
00063 
00064 
00065     // -----------------------------------------------------------------------
00078     BinInputStream* makeStream() const;
00079 
00081 
00082     // -----------------------------------------------------------------------
00097     const XMLCh* getEncoding() const;
00098 
00099 
00109     const XMLCh* getPublicId() const;
00110 
00111 
00123     const XMLCh* getSystemId() const;
00124 
00137     const XMLCh* getBaseURI() const;
00138 
00149     bool getIssueFatalErrorIfNotFound() const;
00150 
00152 
00153 
00154     // -----------------------------------------------------------------------
00157 
00172     void setEncoding(const XMLCh* const encodingStr);
00173 
00174 
00189     void setPublicId(const XMLCh* const publicId);
00190 
00208     void setSystemId(const XMLCh* const systemId);
00209 
00222     void setBaseURI(const XMLCh* const baseURI);
00223 
00238     void setIssueFatalErrorIfNotFound(const bool flag);
00239 
00246     void              release();
00247 
00249 
00250 
00251 private:
00252     // -----------------------------------------------------------------------
00253     //  Unimplemented constructors and operators
00254     // -----------------------------------------------------------------------
00255     Wrapper4InputSource(const Wrapper4InputSource&);
00256     Wrapper4InputSource& operator=(const Wrapper4InputSource&);
00257 
00258     // -----------------------------------------------------------------------
00259     //  Private data members
00260     // -----------------------------------------------------------------------
00261     bool         fAdoptInputSource;
00262     InputSource* fInputSource;
00263 };
00264 
00265 
00266 // ---------------------------------------------------------------------------
00267 //  Wrapper4InputSource: Getter methods
00268 // ---------------------------------------------------------------------------
00269 inline const XMLCh* Wrapper4InputSource::getBaseURI() const
00270 {
00271     return 0; // REVISIT - should we return an empty string?
00272 }
00273 
00274 // ---------------------------------------------------------------------------
00275 //  Wrapper4InputSource: Setter methods
00276 // ---------------------------------------------------------------------------
00277 inline void Wrapper4InputSource::setBaseURI(const XMLCh* const)
00278 {
00279 }
00280 
00281 XERCES_CPP_NAMESPACE_END
00282 
00283 #endif


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