Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

DOMStringPrintWriter.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(DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680)
17 #define DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
27 
28 
29 
31 
32 
33 
34 XALAN_CPP_NAMESPACE_BEGIN
35 
36 
37 
39 {
40 public:
41 
43 
44  virtual
46 
48  getString() const
49  {
50  return *m_outputString;
51  }
52 
53  void
55  {
56  m_outputString = &newString;
57  }
58 
59  // Output functions inherited from PrintWriter...
60 
61  virtual bool
62  checkError() const;
63 
64  virtual void
65  close();
66 
67  virtual void
68  flush();
69 
70  virtual void
71  write(
72  const char* s,
73  size_t theOffset = 0,
74  size_t theLength = npos);
75 
76  virtual void
77  write(
78  const XalanDOMChar* s,
79  XalanDOMString::size_type theOffset = 0,
81 
82  virtual void
83  write(XalanDOMChar c);
84 
85  virtual void
86  write(
87  const XalanDOMString& s,
88  XalanDOMString::size_type theOffset = 0,
90 
91 #if !defined(XALAN_BOOL_AS_INT)
92  virtual void
93  print(bool b);
94 #endif
95 
96  virtual void
97  print(char c);
98 
99  virtual void
100  print(
101  const char* s,
102  size_t theLength = npos);
103 
104  virtual void
105  print(
106  const XalanDOMChar* s,
108 
109  virtual void
110  print(double d);
111 
112  virtual void
113  print(int i);
114 
115  virtual void
116  print(long l);
117 
118  virtual void
119  print(const XalanDOMString& s);
120 
121  virtual void
122  println();
123 
124 #if !defined(XALAN_BOOL_AS_INT)
125  virtual void
126  println(bool x);
127 #endif
128 
129  virtual void
130  println(char x);
131 
132  virtual void
133  println(
134  const char* s,
135  size_t theLength = npos);
136 
137  virtual void
138  println(
139  const XalanDOMChar* s,
141 
142  virtual void
143  println(double x);
144 
145  virtual void
146  println(int x);
147 
148  virtual void
149  println(long x);
150 
151  virtual void
152  println(const XalanDOMString& s);
153 
154 protected:
155 
157 
158 private:
159 
160  // Not implemented
162 
164  operator=(const DOMStringPrintWriter&);
165 
166  bool
168 };
169 
170 
171 
172 XALAN_CPP_NAMESPACE_END
173 
174 
175 
176 #endif // DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
virtual void write(const char *s, size_t theOffset=0, size_t theLength=npos)=0
Writes a string.
XalanDOMString & getString() const
Definition: DOMStringPrintWriter.hpp:48
virtual void close()=0
Close the stream.
void setString(XalanDOMString &newString)
Definition: DOMStringPrintWriter.hpp:54
Definition: PrintWriter.hpp:35
virtual void println()=0
Definition: DOMStringPrintWriter.hpp:38
XalanDOMString * m_outputString
Definition: DOMStringPrintWriter.hpp:156
virtual void flush()=0
Flush the stream.
virtual void print(bool b)=0
Definition: XalanDOMString.hpp:42
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:33
virtual bool checkError() const =0
Flush the stream, then check the error status.
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