- Main Page
- Related Pages
- Classes
- Files

# Wrapper4DOMLSInput.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: Wrapper4DOMLSInput.hpp 527149 2007-04-10 14:56:39Z amassari $
    00020  */
    00021
    00022 #if !defined(XERCESC_INCLUDE_GUARD_WRAPPER4DOMLSINPUT_HPP)
    00023 #define XERCESC_INCLUDE_GUARD_WRAPPER4DOMLSINPUT_HPP
    00024
    00025 #include <xercesc/sax/InputSource.hpp>
    00026
    00027 XERCES_CPP_NAMESPACE_BEGIN
    00028
    00029 class DOMLSInput;
    00030 class DOMLSResourceResolver;
    00031
    00035 class XMLPARSER_EXPORT Wrapper4DOMLSInput: public InputSource
    00036 {
    00037 public:
    00040
    00054     Wrapper4DOMLSInput
    00055     (
    00056         DOMLSInput* const inputSource
    00057         , DOMLSResourceResolver* entityResolver = 0
    00058         , const bool adoptFlag = true
    00059         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
    00060     );
    00061
    00066     virtual ~Wrapper4DOMLSInput();
    00068
    00069
    00070     // -----------------------------------------------------------------------
    00082     BinInputStream* makeStream() const;
    00083
    00085
    00086     // -----------------------------------------------------------------------
    00100     const XMLCh* getEncoding() const;
    00101
    00102
    00111     const XMLCh* getPublicId() const;
    00112
    00113
    00124     const XMLCh* getSystemId() const;
    00125
    00137     bool getIssueFatalErrorIfNotFound() const;
    00138
    00140
    00141
    00142     // -----------------------------------------------------------------------
    00145
    00159     void setEncoding(const XMLCh* const encodingStr);
    00160
    00161
    00175     void setPublicId(const XMLCh* const publicId);
    00176
    00193     void setSystemId(const XMLCh* const systemId);
    00194
    00206     void setIssueFatalErrorIfNotFound(const bool flag);
    00207
    00209
    00210
    00211 private:
    00212     // -----------------------------------------------------------------------
    00213     //  Unimplemented constructors and operators
    00214     // -----------------------------------------------------------------------
    00215     Wrapper4DOMLSInput(const Wrapper4DOMLSInput&);
    00216     Wrapper4DOMLSInput& operator=(const Wrapper4DOMLSInput&);
    00217
    00218     // -----------------------------------------------------------------------
    00219     //  Private data members
    00220     // -----------------------------------------------------------------------
    00221     bool                    fAdoptInputSource,
    00222                             fForceXMLChEncoding;
    00223     DOMLSInput*             fInputSource;
    00224     DOMLSResourceResolver*  fEntityResolver;
    00225 };
    00226
    00227 XERCES_CPP_NAMESPACE_END
    00228
    00229
    00230 #endif