Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

PrintWriter.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(PRINTWRITER_HEADER_GUARD_1357924680)
17 #define PRINTWRITER_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 // Base class header file.
28 
29 
30 
31 XALAN_CPP_NAMESPACE_BEGIN
32 
33 
34 
36 {
37 public:
38 
44  PrintWriter( bool fAutoFlush = false, MemoryManagerType& theManager XALAN_DEFAULT_MEMMGR);
45 
47  getMemoryManager()
48  {
49  return m_memoryManager;
50  }
51 
52  virtual
53  ~PrintWriter();
54 
60  virtual bool
61  checkError() const = 0;
62 
63  // Functions inherited from Writer...
64 
65  virtual void
66  close() = 0;
67 
68  virtual void
69  flush() = 0;
70 
71 
72  // Output functions inherited from Writer...
73 
74  virtual void
75  write(
76  const char* s,
77  size_t theOffset = 0,
78  size_t theLength = npos) = 0;
79 
80  virtual void
81  write(
82  const XalanDOMChar* s,
83  XalanDOMString::size_type theOffset = 0,
85 
86  virtual void
87  write(XalanDOMChar c) = 0;
88 
89  virtual void
90  write(
91  const XalanDOMString& s,
92  XalanDOMString::size_type theOffset = 0,
94 
95  // Output functions which are new...
96 
97 #if !defined(XALAN_BOOL_AS_INT)
98  virtual void
99  print(bool b) = 0;
100 #endif
101 
102  virtual void
103  print(char c) = 0;
104 
105  virtual void
106  print(
107  const char* s,
108  size_t theLength = npos) = 0;
109 
110  virtual void
111  print(
112  const XalanDOMChar* s,
114 
115  virtual void
116  print(double d) = 0;
117 
118  virtual void
119  print(int i) = 0;
120 
121  virtual void
122  print(long l) = 0;
123 
124  virtual void
125  print(const XalanDOMString& s) = 0;
126 
127  virtual void
128  println() = 0;
129 
130 #if !defined(XALAN_BOOL_AS_INT)
131  virtual void
132  println(bool b) = 0;
133 #endif
134 
135  virtual void
136  println(char x) = 0;
137 
138  virtual void
139  println(
140  const char* s,
141  size_t theLength = npos) = 0;
142 
143  virtual void
144  println(
145  const XalanDOMChar* s,
147 
148  virtual void
149  println(double x) = 0;
150 
151  virtual void
152  println(int x) = 0;
153 
154  virtual void
155  println(long x) = 0;
156 
157  virtual void
158  println(const XalanDOMString& s) = 0;
159 
160 protected:
161 
162  const bool m_fAutoFlush;
163 
165 
166  // Some static strings to help derived classes...
167  static const XalanDOMChar s_trueString[];
168 
169  static const XalanDOMChar s_falseString[];
170 
171  static const XalanDOMChar s_newlineString[];
172 
173 private:
174 
175  // Not implemented
176  PrintWriter(const PrintWriter&);
177 
178  PrintWriter&
179  operator=(const PrintWriter&);
180 
181  bool
182  operator==(const PrintWriter&);
183 };
184 
185 
186 
187 XALAN_CPP_NAMESPACE_END
188 
189 
190 
191 #endif // PRINTWRITER_HEADER_GUARD_1357924680

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