Xerces-C++  3.1.2
Wrapper4DOMLSInput.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /*
19  * $Id: Wrapper4DOMLSInput.hpp 527149 2007-04-10 14:56:39Z amassari $
20  */
21 
22 #if !defined(XERCESC_INCLUDE_GUARD_WRAPPER4DOMLSINPUT_HPP)
23 #define XERCESC_INCLUDE_GUARD_WRAPPER4DOMLSINPUT_HPP
24 
26 
28 
29 class DOMLSInput;
31 
36 {
37 public:
40 
55  (
56  DOMLSInput* const inputSource
57  , DOMLSResourceResolver* entityResolver = 0
58  , const bool adoptFlag = true
60  );
61 
66  virtual ~Wrapper4DOMLSInput();
68 
69 
70  // -----------------------------------------------------------------------
82  BinInputStream* makeStream() const;
83 
85 
86  // -----------------------------------------------------------------------
100  const XMLCh* getEncoding() const;
101 
102 
111  const XMLCh* getPublicId() const;
112 
113 
124  const XMLCh* getSystemId() const;
125 
137  bool getIssueFatalErrorIfNotFound() const;
138 
140 
141 
142  // -----------------------------------------------------------------------
145 
159  void setEncoding(const XMLCh* const encodingStr);
160 
161 
175  void setPublicId(const XMLCh* const publicId);
176 
193  void setSystemId(const XMLCh* const systemId);
194 
206  void setIssueFatalErrorIfNotFound(const bool flag);
207 
209 
210 
211 private:
212  // -----------------------------------------------------------------------
213  // Unimplemented constructors and operators
214  // -----------------------------------------------------------------------
216  Wrapper4DOMLSInput& operator=(const Wrapper4DOMLSInput&);
217 
218  // -----------------------------------------------------------------------
219  // Private data members
220  // -----------------------------------------------------------------------
221  bool fAdoptInputSource,
222  fForceXMLChEncoding;
223  DOMLSInput* fInputSource;
224  DOMLSResourceResolver* fEntityResolver;
225 };
226 
228 
229 
230 #endif
virtual void setSystemId(const XMLCh *const systemId)
Set the system identifier for this input source.
This interface represents a single input source for an XML entity.
Definition: DOMLSInput.hpp:59
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
virtual const XMLCh * getPublicId() const
Get the public identifier for this input source.
Definition: InputSource.hpp:307
virtual void setPublicId(const XMLCh *const publicId)
Set the public identifier for this input source.
virtual void setEncoding(const XMLCh *const encodingStr)
Set the encoding which will be required for use with the XML text read via a stream opened by this in...
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
DOMLSResourceResolver provides a way for applications to redirect references to external entities...
Definition: DOMLSResourceResolver.hpp:53
Configurable memory manager.
Definition: MemoryManager.hpp:39
Wrap a DOMLSInput object and make it behave like a SAX InputSource.
Definition: Wrapper4DOMLSInput.hpp:35
virtual const XMLCh * getSystemId() const
Get the system identifier for this input source.
Definition: InputSource.hpp:312
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
virtual BinInputStream * makeStream() const =0
Makes the byte stream for this input source.
virtual const XMLCh * getEncoding() const
An input source can be set to force the parser to assume a particular encoding for the data that inpu...
Definition: InputSource.hpp:302
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: BinInputStream.hpp:29
virtual void setIssueFatalErrorIfNotFound(const bool flag)
Indicates if the parser should issue fatal error if this input source is not found.
Definition: InputSource.hpp:330
A single input source for an XML entity.
Definition: InputSource.hpp:62
virtual bool getIssueFatalErrorIfNotFound() const
Get the flag that indicates if the parser should issue fatal error if this input source is not found...
Definition: InputSource.hpp:317