Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XSLTInputSource.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #if !defined(XALAN_XSLTINPUTSOURCE_HEADER_GUARD)
18 #define XALAN_XSLTINPUTSOURCE_HEADER_GUARD
19 
20 
21 
22 // Base include file. Must be first.
23 #include "XSLTDefinitions.hpp"
24 
25 
26 
27 #if defined(XALAN_CLASSIC_IOSTREAMS)
28 #include <iostream.h>
29 #else
30 #include <iosfwd>
31 #endif
32 
33 
34 
35 #include "xercesc/sax/InputSource.hpp"
36 
37 
38 
40 
41 
42 
43 XALAN_DECLARE_XERCES_CLASS(Locator)
44 
45 
46 
47 XALAN_CPP_NAMESPACE_BEGIN
48 
49 
50 
51 typedef XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream BinInputStreamType;
52 typedef XERCES_CPP_NAMESPACE_QUALIFIER InputSource InputSourceType;
53 XALAN_USING_XERCES(MemoryManager)
54 
55 
56 class XalanDOMString;
57 class XalanNode;
58 
59 
60 
61 class XALAN_XSLT_EXPORT XSLTInputSource : public InputSourceType
62 {
63 public:
64 
65 #if defined(XALAN_NO_STD_NAMESPACE)
66  typedef istream StreamType;
67 #else
68  typedef std::istream StreamType;
69 #endif
70 
71  explicit
72  XSLTInputSource(MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
73 
78  const XSLTInputSource& theSource,
79  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
80 
85  operator=(const XSLTInputSource& theRHS);
86 
99  const XMLCh* systemId,
100  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
101 
114  const XalanDOMString& systemId,
115  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
116 
129  const char* systemId,
130  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
131 
143  const char* systemId,
144  const char* publicId,
145  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
146 
158  const XMLCh* systemId,
159  const XMLCh* publicId,
160  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
161 
173  const XalanDOMString& systemId,
174  const XalanDOMString& publicId,
175  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
176 
188  XalanNode* node,
189  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
190 
202  StreamType* stream,
203  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
204 
216  StreamType& stream,
217  MemoryManager& theMemoryManager = XalanMemMgrs::getDefault());
218 
229  virtual BinInputStreamType*
230  makeStream() const;
231 
237  void
238  setNode(XalanNode* node)
239  {
240  m_node = node;
241  }
242 
248  XalanNode*
249  getNode() const
250  {
251  return m_node;
252  }
253 
254  StreamType*
255  getStream() const
256  {
257  return m_stream;
258  }
259 
260  void
261  setStream(StreamType* stream)
262  {
263  m_stream = stream;
264  }
265 
266 private:
267 
268  StreamType* m_stream;
269 
270  XalanNode* m_node;
271 };
272 
273 
274 
275 XALAN_CPP_NAMESPACE_END
276 
277 
278 
279 #endif // XALAN_XSLTINPUTSOURCE_HEADER_GUARD
Definition: XalanNode.hpp:44
std::istream StreamType
Definition: XSLTInputSource.hpp:68
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER BinInputStream BinInputStreamType
Definition: XSLTInputSource.hpp:51
XERCES_CPP_NAMESPACE_QUALIFIER InputSource InputSourceType
Definition: XMLParserLiaison.hpp:44
void setStream(StreamType *stream)
Definition: XSLTInputSource.hpp:261
Definition: XSLTInputSource.hpp:61
XalanNode * getNode() const
Retrieve the DOM node for this input source.
Definition: XSLTInputSource.hpp:249
void setNode(XalanNode *node)
Set the DOM node for this input source.
Definition: XSLTInputSource.hpp:238
static MemoryManager & getDefault()
Definition: XalanMemoryManagement.hpp:386
#define XALAN_XSLT_EXPORT
Definition: XSLTDefinitions.hpp:25
StreamType * getStream() const
Definition: XSLTInputSource.hpp:255
Definition: XalanDOMString.hpp:42

Interpreting class diagrams

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

dot

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

Apache Logo