| API Docs for SAX and DOM |
| Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages # Wrapper4DOMInputSource.hpp Go to the documentation of this file.
    00001 /*
    00002  * Copyright 2002,2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *      http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016
    00017 /*
    00018  * $Id: Wrapper4DOMInputSource.hpp 176026 2004-09-08 13:57:07Z peiyongz $
    00019  */
    00020
    00021
    00022 #ifndef WRAPPER4DOMINPUTSOURCE_HPP
    00023 #define WRAPPER4DOMINPUTSOURCE_HPP
    00024
    00025 #include <xercesc/sax/InputSource.hpp>
    00026
    00027 XERCES_CPP_NAMESPACE_BEGIN
    00028
    00029 class DOMInputSource;
    00030
    00031
    00035 class  Wrapper4DOMInputSource: public InputSource
    00036 {
    00037 public:
    00040
    00053     Wrapper4DOMInputSource
    00054     (
    00055         DOMInputSource* const inputSource
    00056         , const bool adoptFlag = true
    00057         , MemoryManager* const  manager = XMLPlatformUtils::fgMemoryManager
    00058     );
    00059
    00064     virtual ~Wrapper4DOMInputSource();
    00066
    00067
    00068     // -----------------------------------------------------------------------
    00081     BinInputStream* makeStream() const;
    00082
    00084
    00085     // -----------------------------------------------------------------------
    00100     const XMLCh* getEncoding() const;
    00101
    00102
    00112     const XMLCh* getPublicId() const;
    00113
    00114
    00126     const XMLCh* getSystemId() const;
    00127
    00140     bool getIssueFatalErrorIfNotFound() const;
    00141
    00143
    00144
    00145     // -----------------------------------------------------------------------
    00148
    00163     void setEncoding(const XMLCh* const encodingStr);
    00164
    00165
    00180     void setPublicId(const XMLCh* const publicId);
    00181
    00199     void setSystemId(const XMLCh* const systemId);
    00200
    00213     void setIssueFatalErrorIfNotFound(const bool flag);
    00214
    00216
    00217
    00218 private:
    00219     // -----------------------------------------------------------------------
    00220     //  Unimplemented constructors and operators
    00221     // -----------------------------------------------------------------------
    00222     Wrapper4DOMInputSource(const Wrapper4DOMInputSource&);
    00223     Wrapper4DOMInputSource& operator=(const Wrapper4DOMInputSource&);
    00224
    00225     // -----------------------------------------------------------------------
    00226     //  Private data members
    00227     // -----------------------------------------------------------------------
    00228     bool            fAdoptInputSource;
    00229     DOMInputSource* fInputSource;
    00230 };
    00231
    00232 XERCES_CPP_NAMESPACE_END
    00233
    00234
    00235 #endif

Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.