Wrapper4InputSource.hpp

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  * 
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  * 
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 /*
00019  * $Id: Wrapper4InputSource.hpp 568078 2007-08-21 11:43:25Z amassari $
00020  */
00021 
00022 
00023 #ifndef WRAPPER4INPUTSOURCE_HPP
00024 #define WRAPPER4INPUTSOURCE_HPP
00025 
00026 #include <xercesc/dom/DOMInputSource.hpp>
00027 #include <xercesc/util/PlatformUtils.hpp>
00028 
00029 XERCES_CPP_NAMESPACE_BEGIN
00030 
00031 class InputSource;
00032 
00033 
00037 class XMLPARSER_EXPORT Wrapper4InputSource: public DOMInputSource
00038 {
00039 public:
00042 
00054     Wrapper4InputSource(InputSource* const inputSource
00055                         , const bool adoptFlag = true
00056                         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00057 
00062     virtual ~Wrapper4InputSource();
00064 
00065 
00066     // -----------------------------------------------------------------------
00079     BinInputStream* makeStream() const;
00080 
00082 
00083     // -----------------------------------------------------------------------
00098     const XMLCh* getEncoding() const;
00099 
00100 
00110     const XMLCh* getPublicId() const;
00111 
00112 
00124     const XMLCh* getSystemId() const;
00125 
00138     const XMLCh* getBaseURI() const;
00139 
00150     bool getIssueFatalErrorIfNotFound() const;
00151 
00153 
00154 
00155     // -----------------------------------------------------------------------
00158 
00173     void setEncoding(const XMLCh* const encodingStr);
00174 
00175 
00190     void setPublicId(const XMLCh* const publicId);
00191 
00209     void setSystemId(const XMLCh* const systemId);
00210 
00223     void setBaseURI(const XMLCh* const baseURI);
00224 
00239     void setIssueFatalErrorIfNotFound(const bool flag);
00240 
00247     void              release();
00248 
00250 
00251 
00252 private:
00253     // -----------------------------------------------------------------------
00254     //  Unimplemented constructors and operators
00255     // -----------------------------------------------------------------------
00256     Wrapper4InputSource(const Wrapper4InputSource&);
00257     Wrapper4InputSource& operator=(const Wrapper4InputSource&);
00258 
00259     // -----------------------------------------------------------------------
00260     //  Private data members
00261     // -----------------------------------------------------------------------
00262     bool         fAdoptInputSource;
00263     InputSource* fInputSource;
00264 };
00265 
00266 
00267 // ---------------------------------------------------------------------------
00268 //  Wrapper4InputSource: Getter methods
00269 // ---------------------------------------------------------------------------
00270 inline const XMLCh* Wrapper4InputSource::getBaseURI() const
00271 {
00272     return 0; // REVISIT - should we return an empty string?
00273 }
00274 
00275 // ---------------------------------------------------------------------------
00276 //  Wrapper4InputSource: Setter methods
00277 // ---------------------------------------------------------------------------
00278 inline void Wrapper4InputSource::setBaseURI(const XMLCh* const)
00279 {
00280 }
00281 
00282 XERCES_CPP_NAMESPACE_END
00283 
00284 #endif

Generated on Thu Feb 19 11:35:43 2009 for Xerces-C++ by  doxygen 1.5.4