Xalan-C++ API Reference  1.12.0
NullPrintWriter.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(NULLPRINTWRITER_HEADER_GUARD_1357924680)
19 #define NULLPRINTWRITER_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
28 // Base class header file.
30 
31 
32 
33 namespace XALAN_CPP_NAMESPACE {
34 
35 
36 
38 {
39 public:
40 
41  explicit
42  NullPrintWriter(MemoryManager& theManager);
43 
44  virtual
45  ~NullPrintWriter();
46 
47  // Functions inherited from PrintWriter...
48 
49  virtual bool
50  checkError() const;
51 
52  virtual void
53  close();
54 
55  virtual void
56  flush();
57 
58  virtual void
59  write(
60  const char* s,
61  size_t theOffset = 0,
62  size_t theLength = npos);
63 
64  virtual void
65  write(
66  const XalanDOMChar* s,
67  XalanDOMString::size_type theOffset = 0,
68  XalanDOMString::size_type theLength = XalanDOMString::npos);
69 
70  virtual void
71  write(XalanDOMChar c);
72 
73  virtual void
74  write(
75  const XalanDOMString& s,
76  XalanDOMString::size_type theOffset = 0,
77  XalanDOMString::size_type theLength = XalanDOMString::npos);
78 
79 #if !defined(XALAN_BOOL_AS_INT)
80  virtual void
81  print(bool b);
82 #endif
83 
84  virtual void
85  print(char c);
86 
87  virtual void
88  print(
89  const char* s,
90  size_t theLength = npos);
91 
92  virtual void
93  print(
94  const XalanDOMChar* s,
95  XalanDOMString::size_type theLength = XalanDOMString::npos);
96 
97  virtual void
98  print(double d);
99 
100  virtual void
101  print(int i);
102 
103  virtual void
104  print(long l);
105 
106  virtual void
107  print(const XalanDOMString& s);
108 
109  virtual void
110  println();
111 
112 #if !defined(XALAN_BOOL_AS_INT)
113  virtual void
114  println(bool x);
115 #endif
116 
117  virtual void
118  println(char x);
119 
120  virtual void
121  println(
122  const char* s,
123  size_t theLength = npos);
124 
125  virtual void
126  println(
127  const XalanDOMChar* s,
128  XalanDOMString::size_type theLength = XalanDOMString::npos);
129 
130  virtual void
131  println(double x);
132 
133  virtual void
134  println(int x);
135 
136  virtual void
137  println(long x);
138 
139  virtual void
140  println(const XalanDOMString& s);
141 
142 private:
143 
144  // Not implemented
146 
148  operator=(const NullPrintWriter&);
149 
150  bool
151  operator==(const NullPrintWriter&);
152 };
153 
154 
155 
156 }
157 
158 
159 
160 #endif // NULLPRINTWRITER_HEADER_GUARD_1357924680
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1118
XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:35
PlatformSupportDefinitions.hpp
xalanc::PrintWriter
Definition: PrintWriter.hpp:37
PrintWriter.hpp
xalanc::NullPrintWriter
Definition: NullPrintWriter.hpp:37
xalanc::XalanDOMString::size_type
XalanSize_t size_type
Definition: XalanDOMString.hpp:57
xalanc::XalanDOMString
Definition: XalanDOMString.hpp:45