DOMInputSource.hpp

Go to the documentation of this file.
00001 #ifndef DOMInputSource_HEADER_GUARD_
00002 #define DOMInputSource_HEADER_GUARD_
00003 
00004 /*
00005  * Licensed to the Apache Software Foundation (ASF) under one or more
00006  * contributor license agreements.  See the NOTICE file distributed with
00007  * this work for additional information regarding copyright ownership.
00008  * The ASF licenses this file to You under the Apache License, Version 2.0
00009  * (the "License"); you may not use this file except in compliance with
00010  * the License.  You may obtain a copy of the License at
00011  * 
00012  *      http://www.apache.org/licenses/LICENSE-2.0
00013  * 
00014  * Unless required by applicable law or agreed to in writing, software
00015  * distributed under the License is distributed on an "AS IS" BASIS,
00016  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00017  * See the License for the specific language governing permissions and
00018  * limitations under the License.
00019  */
00020 
00021 /*
00022  * $Id: DOMInputSource.hpp 568078 2007-08-21 11:43:25Z amassari $
00023  */
00024 
00025 
00026 #include <xercesc/util/XercesDefs.hpp>
00027 
00028 XERCES_CPP_NAMESPACE_BEGIN
00029 
00030 
00031 class BinInputStream;
00032 
00033 
00060 class CDOM_EXPORT DOMInputSource
00061 {
00062 protected:
00063     // -----------------------------------------------------------------------
00064     //  Hidden constructors
00065     // -----------------------------------------------------------------------
00068     DOMInputSource() {};
00070 
00071 private:
00072     // -----------------------------------------------------------------------
00073     // Unimplemented constructors and operators
00074     // -----------------------------------------------------------------------
00077     DOMInputSource(const DOMInputSource &);
00078     DOMInputSource & operator = (const DOMInputSource &);
00080 
00081 public:
00082     // -----------------------------------------------------------------------
00083     //  All constructors are hidden, just the destructor is available
00084     // -----------------------------------------------------------------------
00091     virtual ~DOMInputSource() {};
00093 
00094     // -----------------------------------------------------------------------
00095     //  Virtual DOMInputSource interface
00096     // -----------------------------------------------------------------------
00099     // -----------------------------------------------------------------------
00100     //  Getter methods
00101     // -----------------------------------------------------------------------
00114     virtual const XMLCh* getEncoding() const = 0;
00115 
00116 
00126     virtual const XMLCh* getPublicId() const = 0;
00127 
00128 
00140     virtual const XMLCh* getSystemId() const = 0;
00141 
00142 
00154     virtual const XMLCh* getBaseURI() const = 0;
00155 
00156     // -----------------------------------------------------------------------
00157     //  Setter methods
00158     // -----------------------------------------------------------------------
00173     virtual void setEncoding(const XMLCh* const encodingStr) = 0;
00174 
00175 
00188     virtual void setPublicId(const XMLCh* const publicId) = 0;
00189 
00205     virtual void setSystemId(const XMLCh* const systemId) = 0;
00206 
00218     virtual void setBaseURI(const XMLCh* const baseURI) = 0;
00220 
00221     // -----------------------------------------------------------------------
00222     //  Non-standard Extension
00223     // -----------------------------------------------------------------------
00226 
00239     virtual BinInputStream* makeStream() const = 0;
00240 
00252     virtual void setIssueFatalErrorIfNotFound(const bool flag) = 0;
00253 
00254 
00265     virtual bool getIssueFatalErrorIfNotFound() const = 0;
00266 
00273     virtual void              release() = 0;
00275 };
00276 
00277 
00278 XERCES_CPP_NAMESPACE_END
00279 
00280 #endif

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