Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:27:01

0001 /*
0002  * Licensed to the Apache Software Foundation (ASF) under one or more
0003  * contributor license agreements.  See the NOTICE file distributed with
0004  * this work for additional information regarding copyright ownership.
0005  * The ASF licenses this file to You under the Apache License, Version 2.0
0006  * (the "License"); you may not use this file except in compliance with
0007  * the License.  You may obtain a copy of the License at
0008  * 
0009  *      http://www.apache.org/licenses/LICENSE-2.0
0010  * 
0011  * Unless required by applicable law or agreed to in writing, software
0012  * distributed under the License is distributed on an "AS IS" BASIS,
0013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014  * See the License for the specific language governing permissions and
0015  * limitations under the License.
0016  */
0017 
0018 /*
0019  * $Id$
0020  */
0021 
0022 #if !defined(XERCESC_INCLUDE_GUARD_DOMLSINPUTIMPL_HPP)
0023 #define XERCESC_INCLUDE_GUARD_DOMLSINPUTIMPL_HPP
0024 
0025 #include <xercesc/dom/DOM.hpp>
0026 #include <xercesc/dom/DOMLSInput.hpp>
0027 
0028 XERCES_CPP_NAMESPACE_BEGIN
0029 
0030 class CDOM_EXPORT DOMLSInputImpl : public XMemory, public DOMLSInput
0031 {
0032 
0033 public:
0034 
0035     DOMLSInputImpl(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
0036     ~DOMLSInputImpl();
0037 
0038     virtual const XMLCh* getStringData() const;
0039     virtual InputSource* getByteStream() const;
0040     virtual const XMLCh* getEncoding() const;
0041     virtual const XMLCh* getPublicId() const;
0042     virtual const XMLCh* getSystemId() const;
0043     virtual const XMLCh* getBaseURI() const;
0044 
0045     virtual void setStringData(const XMLCh* data);
0046     virtual void setByteStream(InputSource* stream);
0047     virtual void setEncoding(const XMLCh* const encodingStr);
0048     virtual void setPublicId(const XMLCh* const publicId);
0049     virtual void setSystemId(const XMLCh* const systemId);
0050     virtual void setBaseURI(const XMLCh* const baseURI);
0051 
0052     virtual void setIssueFatalErrorIfNotFound(bool flag);
0053     virtual bool getIssueFatalErrorIfNotFound() const;
0054     virtual void release();
0055 
0056 
0057 private:
0058     /** unimplemented copy ctor and assignment operator */
0059     DOMLSInputImpl(const DOMLSInputImpl&);
0060     DOMLSInputImpl & operator = (const DOMLSInputImpl&);
0061 
0062 protected:
0063     // -----------------------------------------------------------------------
0064     //  Private data members
0065     //
0066     //  fStringData
0067     //    We don't own it
0068     //
0069     //  fByteStream
0070     //    We don't own it
0071     //
0072     //  fEncoding
0073     //    We own it
0074     //
0075     //  fPublicId
0076     //    We own it
0077     //
0078     //  fSystemId
0079     //    We own it
0080     //
0081     //  fBaseURI
0082     //    We own it
0083     // 
0084     // -----------------------------------------------------------------------
0085 
0086     const XMLCh                  *fStringData;
0087     InputSource                  *fByteStream;
0088     XMLCh                        *fEncoding;
0089     XMLCh                        *fPublicId;
0090     XMLCh                        *fSystemId;
0091     XMLCh                        *fBaseURI;
0092     bool                         fIssueFatalErrorIfNotFound;
0093     MemoryManager*               fMemoryManager;
0094 };
0095 
0096 inline const XMLCh* DOMLSInputImpl::getStringData() const
0097 {
0098     return fStringData;
0099 }
0100 
0101 inline InputSource* DOMLSInputImpl::getByteStream() const
0102 {
0103     return fByteStream;
0104 }
0105 
0106 inline const XMLCh* DOMLSInputImpl::getEncoding() const
0107 {
0108     return fEncoding;
0109 }
0110 
0111 inline const XMLCh* DOMLSInputImpl::getPublicId() const
0112 {
0113     return fPublicId;
0114 }
0115 
0116 inline const XMLCh* DOMLSInputImpl::getSystemId() const
0117 {
0118     return fSystemId;
0119 }
0120 
0121 inline const XMLCh* DOMLSInputImpl::getBaseURI() const
0122 {
0123     return fBaseURI;
0124 }
0125 
0126 inline bool DOMLSInputImpl::getIssueFatalErrorIfNotFound() const
0127 {
0128     return fIssueFatalErrorIfNotFound;
0129 }
0130 
0131 
0132 XERCES_CPP_NAMESPACE_END
0133 
0134 #endif