Xerces-C++  3.1.2
URLInputSource.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: URLInputSource.hpp 932887 2010-04-11 13:04:59Z borisk $
20  */
21 
22 #if !defined(XERCESC_INCLUDE_GUARD_URLINPUTSOURCE_HPP)
23 #define XERCESC_INCLUDE_GUARD_URLINPUTSOURCE_HPP
24 
25 #include <xercesc/util/XMLURL.hpp>
27 
29 
30 class BinInputStream;
31 
48 {
49 public :
50  // -----------------------------------------------------------------------
51  // Constructors and Destructor
52  // -----------------------------------------------------------------------
53 
56 
69  (
70  const XMLURL& urlId
72  );
73 
74 
90  (
91  const XMLCh* const baseId
92  , const XMLCh* const systemId
94  );
95 
113  (
114  const XMLCh* const baseId
115  , const XMLCh* const systemId
116  , const XMLCh* const publicId
118  );
119 
120 
136  (
137  const XMLCh* const baseId
138  , const char* const systemId
140  );
141 
161  (
162  const XMLCh* const baseId
163  , const char* const systemId
164  , const char* const publicId
166  );
167 
169 
172  ~URLInputSource();
174 
175 
176  // -----------------------------------------------------------------------
177  // Virtual input source interface
178  // -----------------------------------------------------------------------
179 
182 
187  BinInputStream* makeStream() const;
188 
190 
191 
192  // -----------------------------------------------------------------------
193  // Getter methods
194  // -----------------------------------------------------------------------
195 
198 
207  const XMLURL& urlSrc() const;
208 
210 
211 
212 private :
213  // -----------------------------------------------------------------------
214  // Unimplemented constructors and operators
215  // -----------------------------------------------------------------------
217  URLInputSource& operator=(const URLInputSource&);
218 
219  // -----------------------------------------------------------------------
220  // Private data members
221  //
222  // fURL
223  // This is the URL created from the passed ids.
224  // -----------------------------------------------------------------------
225  XMLURL fURL;
226 };
227 
228 
229 inline const XMLURL& URLInputSource::urlSrc() const
230 {
231  return fURL;
232 }
233 
235 
236 #endif
static MemoryManager * fgMemoryManager
The configurable memory manager.
Definition: PlatformUtils.hpp:121
Definition: XMLURL.hpp:35
This class is a derivative of the standard InputSource class.
Definition: URLInputSource.hpp:47
#define XMLPARSER_EXPORT
Definition: XercesDefs.hpp:163
Configurable memory manager.
Definition: MemoryManager.hpp:39
#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.
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
Definition: BinInputStream.hpp:29
const XMLURL & urlSrc() const
This method will return a const reference to the URL member which contains the system id in pre-parse...
Definition: URLInputSource.hpp:229
A single input source for an XML entity.
Definition: InputSource.hpp:62