Xalan-C++ API Reference 1.12.0
DOMStringPrintWriter.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#if !defined(DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680)
19#define DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680
20
21
22
23// Base include file. Must be first.
25
26
27
29
30
31
33
34
35
36namespace XALAN_CPP_NAMESPACE {
37
38
39
41{
42public:
43
45
46 virtual
48
50 getString() const
51 {
52 return *m_outputString;
53 }
54
55 void
57 {
58 m_outputString = &newString;
59 }
60
61 // Output functions inherited from PrintWriter...
62
63 virtual bool
64 checkError() const;
65
66 virtual void
68
69 virtual void
71
72 virtual void
74 const char* s,
75 size_t theOffset = 0,
76 size_t theLength = npos);
77
78 virtual void
80 const XalanDOMChar* s,
82 XalanDOMString::size_type theLength = XalanDOMString::npos);
83
84 virtual void
86
87 virtual void
89 const XalanDOMString& s,
91 XalanDOMString::size_type theLength = XalanDOMString::npos);
92
93#if !defined(XALAN_BOOL_AS_INT)
94 virtual void
95 print(bool b);
96#endif
97
98 virtual void
99 print(char c);
100
101 virtual void
103 const char* s,
104 size_t theLength = npos);
105
106 virtual void
108 const XalanDOMChar* s,
109 XalanDOMString::size_type theLength = XalanDOMString::npos);
110
111 virtual void
112 print(double d);
113
114 virtual void
116
117 virtual void
119
120 virtual void
122
123 virtual void
125
126#if !defined(XALAN_BOOL_AS_INT)
127 virtual void
128 println(bool x);
129#endif
130
131 virtual void
132 println(char x);
133
134 virtual void
136 const char* s,
137 size_t theLength = npos);
138
139 virtual void
141 const XalanDOMChar* s,
142 XalanDOMString::size_type theLength = XalanDOMString::npos);
143
144 virtual void
145 println(double x);
146
147 virtual void
149
150 virtual void
152
153 virtual void
155
156protected:
157
159
160private:
161
162 // Not implemented
164
166 operator=(const DOMStringPrintWriter&);
167
168 bool
170};
171
172
173
174}
175
176
177
178#endif // DOMSTRING_PRINTWRITER_HEADER_GUARD_1357924680
#define XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
virtual void println(const char *s, size_t theLength=npos)
void setString(XalanDOMString &newString)
virtual void println(char x)
virtual void write(XalanDOMChar c)
Writes a character.
virtual void close()
Close the stream.
virtual void write(const char *s, size_t theOffset=0, size_t theLength=npos)
Writes a string.
virtual void flush()
Flush the stream.
virtual void println(XMLInt64 x)
virtual void print(XMLInt64 l)
virtual void println(bool x)
DOMStringPrintWriter(XalanDOMString &theString)
virtual void print(const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)
virtual void println(XMLInt32 x)
virtual void write(const XalanDOMString &s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)
Writes a string.
virtual void println(const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)
virtual void print(XMLInt32 i)
virtual bool checkError() const
Flush the stream, then check the error status.
virtual void write(const XalanDOMChar *s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)
Writes a string.
virtual void print(char c)
XalanDOMString & getString() const
virtual void print(const char *s, size_t theLength=npos)
virtual void print(double d)
virtual void print(bool b)
virtual void println(double x)
virtual void print(const XalanDOMString &s)
virtual void println(const XalanDOMString &s)
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)