SourceForge.net Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Examples

URLInputSource.hpp

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  * 
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  * 
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 /*
00019  * $Id: URLInputSource.hpp 527149 2007-04-10 14:56:39Z amassari $
00020  */
00021 
00022 #if !defined(XERCESC_INCLUDE_GUARD_URLINPUTSOURCE_HPP)
00023 #define XERCESC_INCLUDE_GUARD_URLINPUTSOURCE_HPP
00024 
00025 #include <xercesc/util/XMLURL.hpp>
00026 #include <xercesc/sax/InputSource.hpp>
00027 
00028 XERCES_CPP_NAMESPACE_BEGIN
00029 
00030 class BinInputStream;
00031 
00047 class XMLPARSER_EXPORT URLInputSource : public InputSource
00048 {
00049 public :
00050     // -----------------------------------------------------------------------
00051     //  Constructors and Destructor
00052     // -----------------------------------------------------------------------
00053 
00056 
00068     URLInputSource
00069     (
00070         const XMLURL& urlId
00071         , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00072     );
00073 
00074 
00089     URLInputSource
00090     (
00091         const   XMLCh* const    baseId
00092         , const XMLCh* const    systemId
00093         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00094     );
00095 
00112     URLInputSource
00113     (
00114         const   XMLCh* const    baseId
00115         , const XMLCh* const    systemId
00116         , const XMLCh* const    publicId
00117         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00118     );
00119 
00120 
00135     URLInputSource
00136     (
00137         const   XMLCh* const    baseId
00138         , const char* const     systemId
00139         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00140     );
00141 
00160     URLInputSource
00161     (
00162         const   XMLCh* const    baseId
00163         , const char* const     systemId
00164         , const char* const     publicId
00165         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
00166     );
00167 
00169 
00172     ~URLInputSource();
00174 
00175 
00176     // -----------------------------------------------------------------------
00177     //  Virtual input source interface
00178     // -----------------------------------------------------------------------
00179 
00182 
00187     BinInputStream* makeStream() const;
00188 
00190 
00191 
00192     // -----------------------------------------------------------------------
00193     //  Getter methods
00194     // -----------------------------------------------------------------------
00195 
00198 
00207     const XMLURL& urlSrc() const;
00208 
00210 
00211 
00212 private :
00213     // -----------------------------------------------------------------------
00214     //  Unimplemented constructors and operators
00215     // -----------------------------------------------------------------------    
00216     URLInputSource(const URLInputSource&);
00217     URLInputSource& operator=(const URLInputSource&);
00218 
00219     // -----------------------------------------------------------------------
00220     //  Private data members
00221     //
00222     //  fURL
00223     //      This is the URL created from the passed ids.
00224     // -----------------------------------------------------------------------
00225     XMLURL fURL;
00226 };
00227 
00228 
00229 inline const XMLURL& URLInputSource::urlSrc() const
00230 {
00231     return fURL;
00232 }
00233 
00234 XERCES_CPP_NAMESPACE_END
00235 
00236 #endif

Generated on Fri Sep 25 06:55:26 2009 for XQilla Simple API by  doxygen 1.3.9.1