File indexing completed on 2025-01-30 10:27:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
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
0059 DOMLSInputImpl(const DOMLSInputImpl&);
0060 DOMLSInputImpl & operator = (const DOMLSInputImpl&);
0061
0062 protected:
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080
0081
0082
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