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 #include "xalanc/Include/XalanMemoryManagement.hpp" 00040 00041 00042 00043 XALAN_DECLARE_XERCES_CLASS(Locator) 00044 00045 00046 00047 XALAN_CPP_NAMESPACE_BEGIN 00048 00049 00050 00051 typedef XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream BinInputStreamType; 00052 typedef XERCES_CPP_NAMESPACE_QUALIFIER InputSource InputSourceType; 00053 XALAN_USING_XERCES(MemoryManager) 00054 00055 00056 class XalanDOMString; 00057 class XalanNode; 00058 00059 00060 00061 class XALAN_XSLT_EXPORT XSLTInputSource : public InputSourceType 00062 { 00063 public: 00064 00065 #if defined(XALAN_NO_STD_NAMESPACE) 00066 typedef istream StreamType; 00067 #else 00068 typedef std::istream StreamType; 00069 #endif 00070 00071 explicit 00072 XSLTInputSource(MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00073 00077 XSLTInputSource( 00078 const XSLTInputSource& theSource, 00079 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00080 00084 XSLTInputSource& 00085 operator=(const XSLTInputSource& theRHS); 00086 00098 XSLTInputSource( 00099 const XMLCh* systemId, 00100 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00101 00113 XSLTInputSource( 00114 const XalanDOMString& systemId, 00115 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00116 00128 XSLTInputSource( 00129 const char* systemId, 00130 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00131 00142 XSLTInputSource( 00143 const char* systemId, 00144 const char* publicId, 00145 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00146 00157 XSLTInputSource( 00158 const XMLCh* systemId, 00159 const XMLCh* publicId, 00160 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00161 00172 XSLTInputSource( 00173 const XalanDOMString& systemId, 00174 const XalanDOMString& publicId, 00175 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00176 00187 XSLTInputSource( 00188 XalanNode* node, 00189 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00190 00201 XSLTInputSource( 00202 StreamType* stream, 00203 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00204 00215 XSLTInputSource( 00216 StreamType& stream, 00217 MemoryManager& theMemoryManager = XalanMemMgrs::getDefault()); 00218 00229 virtual BinInputStreamType* 00230 makeStream() const; 00231 00237 void 00238 setNode(XalanNode* node) 00239 { 00240 m_node = node; 00241 } 00242 00248 XalanNode* 00249 getNode() const 00250 { 00251 return m_node; 00252 } 00253 00254 StreamType* 00255 getStream() const 00256 { 00257 return m_stream; 00258 } 00259 00260 void 00261 setStream(StreamType* stream) 00262 { 00263 m_stream = stream; 00264 } 00265 00266 private: 00267 00268 StreamType* m_stream; 00269 00270 XalanNode* m_node; 00271 }; 00272 00273 00274 00275 XALAN_CPP_NAMESPACE_END 00276 00277 00278 00279 #endif // XALAN_XSLTINPUTSOURCE_HEADER_GUARD
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.10 |
|