Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Writer.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 #if !defined(WRITER_HEADER_GUARD_1357924680)
17 #define WRITER_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 #include <cstddef>
27 
28 
29 
31 
32 
33 
34 XALAN_CPP_NAMESPACE_BEGIN
35 
36 
37 
38 class XalanOutputStream;
39 
40 
41 
43 {
44 public:
45 
46  Writer();
47 
48  virtual
49  ~Writer();
50 
54  virtual void
55  close() = 0;
56 
60  virtual void
61  flush() = 0;
62 
66  virtual XalanOutputStream*
67  getStream();
68 
72  virtual const XalanOutputStream*
73  getStream() const;
74 
75 
76  // Output functions
77 
78 #if defined(XALAN_INLINE_INITIALIZATION)
79  static const size_t npos = ~0u;
80 #else
81  static const size_t npos;
82 #endif
83 
91  virtual void
92  write(
93  const char* s,
94  size_t theOffset = 0,
95  size_t theLength = npos) = 0;
96 
104  virtual void
105  write(
106  const XalanDOMChar* s,
107  XalanDOMString::size_type theOffset = 0,
109 
115  virtual void
116  write(XalanDOMChar c) = 0;
117 
125  virtual void
126  write(
127  const XalanDOMString& s,
128  XalanDOMString::size_type theOffset = 0,
130 
131 private:
132 
133  // Not implemented
134  Writer(const Writer&);
135 
136  Writer&
137  operator=(const Writer&);
138 
139  bool
140  operator==(const Writer&);
141 };
142 
143 
144 
145 XALAN_CPP_NAMESPACE_END
146 
147 
148 
149 #endif // WRITER_HEADER_GUARD_1357924680
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
Definition: Writer.hpp:42
Definition: XalanOutputStream.hpp:47
Definition: XalanDOMString.hpp:42
static const size_t npos
Definition: Writer.hpp:81
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:33
unsigned int size_type
Definition: XalanDOMString.hpp:53
Definition: XalanDOMString.hpp:63

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