## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# XSLTInputSource.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 1999-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 #if !defined(XALAN_XSLTINPUTSOURCE_HEADER_GUARD)
    00018 #define XALAN_XSLTINPUTSOURCE_HEADER_GUARD
    00019
    00020
    00021
    00022 // Base include file.  Must be first.
    00023 #include "XSLTDefinitions.hpp"
    00024
    00025
    00026
    00027 #if defined(XALAN_CLASSIC_IOSTREAMS)
    00028 #include <iostream.h>
    00029 #else
    00030 #include <iosfwd>
    00031 #endif
    00032
    00033
    00034
    00035 #include <xercesc/sax/InputSource.hpp>
    00036
    00037
    00038
    00039 XALAN_DECLARE_XERCES_CLASS(Locator)
    00040
    00041
    00042
    00043 XALAN_CPP_NAMESPACE_BEGIN
    00044
    00045
    00046
    00047 typedef XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream   BinInputStreamType;
    00048 typedef XERCES_CPP_NAMESPACE_QUALIFIER InputSource      InputSourceType;
    00049
    00050
    00051
    00052 class XalanDOMString;
    00053 class XalanNode;
    00054
    00055
    00056
    00057 class XALAN_XSLT_EXPORT XSLTInputSource : public InputSourceType
    00058 {
    00059 public:
    00060
    00061 #if defined(XALAN_NO_STD_NAMESPACE)
    00062     typedef istream         StreamType;
    00063 #else
    00064     typedef std::istream    StreamType;
    00065 #endif
    00066
    00067     explicit
    00068     XSLTInputSource();
    00069
    00073     XSLTInputSource(const XSLTInputSource&  theSource);
    00074
    00078     XSLTInputSource&
    00079     operator=(const XSLTInputSource&    theRHS);
    00080
    00091     XSLTInputSource(const XMLCh*    systemId);
    00092
    00103     XSLTInputSource(const XalanDOMString&   systemId);
    00104
    00115     XSLTInputSource(const char*     systemId);
    00116
    00126     XSLTInputSource(
    00127             const char*     systemId,
    00128             const char*     publicId);
    00129
    00139     XSLTInputSource(
    00140             const XMLCh*    systemId,
    00141             const XMLCh*    publicId);
    00142
    00152     XSLTInputSource(
    00153             const XalanDOMString&   systemId,
    00154             const XalanDOMString&   publicId);
    00155
    00165     XSLTInputSource(XalanNode*  node);
    00166
    00176     XSLTInputSource(StreamType*     stream);
    00177
    00187     XSLTInputSource(StreamType&     stream);
    00188
    00199     virtual BinInputStreamType*
    00200     makeStream() const;
    00201
    00207     void
    00208     setNode(XalanNode*  node)
    00209     {
    00210         m_node = node;
    00211     }
    00212
    00218     XalanNode*
    00219     getNode() const
    00220     {
    00221         return m_node;
    00222     }
    00223
    00224     StreamType*
    00225     getStream() const
    00226     {
    00227         return m_stream;
    00228     }
    00229
    00230     void
    00231     setStream(StreamType*   stream)
    00232     {
    00233         m_stream = stream;
    00234     }
    00235
    00236 private:
    00237
    00238     StreamType*     m_stream;
    00239
    00240     XalanNode*      m_node;
    00241 };
    00242
    00243
    00244
    00245 XALAN_CPP_NAMESPACE_END
    00246
    00247
    00248
    00249 #endif  // XALAN_XSLTINPUTSOURCE_HEADER_GUARD

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.