Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanFileOutputStream.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(XALANFILEOUTPUTSTREAM_HEADER_GUARD_1357924680)
17 #define XALANFILEOUTPUTSTREAM_HEADER_GUARD_1357924680
18 
19 
20 
21 // Base include file. Must be first.
23 
24 
25 
26 #if defined(WIN32)
27 #include <windows.h>
28 #else
29 #include <cstdio>
30 #endif
31 
32 
33 
34 // Base class header file.
36 
37 
38 
39 XALAN_CPP_NAMESPACE_BEGIN
40 
41 
42 
44 {
45 public :
46 
47  enum { eDefaultBufferSize = 8192 };
48 
49 #if defined(WIN32)
50  typedef HANDLE HandleType;
51 #else
52  typedef FILE* HandleType;
53 #endif
54 
62  const XalanDOMString& theFileName,
63  MemoryManagerType& theManager,
64  unsigned int theBufferSize = eDefaultBufferSize);
65 
66  static XalanFileOutputStream*
67  create(
68  const XalanDOMString& theFileName,
69  MemoryManagerType& theManager,
70  unsigned int theBufferSize = eDefaultBufferSize);
71  virtual
73 
74 
76  {
77  public:
78 
87  const XalanDOMString& theFileName,
88  int theErrorCode,
89  XalanDOMString& theBuffer);
90 
92  create(
93  MemoryManagerType& theManager,
94  const XalanDOMString& theFileName,
95  int theErrorCode,
96  XalanDOMString& theBuffer);
97 
98  virtual
100 
101  virtual const XalanDOMChar*
102  getType() const
103  {
104  return m_type;
105  }
106 
107  private:
108  static const XalanDOMChar m_type[];
109 
110  };
111 
113  {
114  public:
115 
124  const XalanDOMString& theFileName,
125  int theErrorCode,
126  XalanDOMString& theBuffer);
127 
128  virtual
130 
131  virtual const XalanDOMChar*
132  getType() const
133  {
134  return m_type;
135  }
136 
137  private:
138  static const XalanDOMChar m_type[];
139 
140  };
141 
142 protected:
143 
144  virtual void
145  writeData(
146  const char* theBuffer,
147  size_type theBufferLength);
148 
149  virtual void
150  doFlush();
151 
152 private:
153 
154  // These are not implemented...
156 
158  operator=(const XalanFileOutputStream&);
159 
160  bool
161  operator==(const XalanFileOutputStream&) const;
162 
163 
164  // Data members...
165  const XalanDOMString m_fileName;
166 
167  const HandleType m_handle;
168 };
169 
170 
171 
172 XALAN_CPP_NAMESPACE_END
173 
174 
175 
176 #endif // XALANFILEOUTPUTSTREAM_HEADER_GUARD_1357924680
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1111
Definition: XalanFileOutputStream.hpp:75
Definition: XalanFileOutputStream.hpp:43
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
Definition: XalanFileOutputStream.hpp:102
FILE * HandleType
Definition: XalanFileOutputStream.hpp:52
Definition: XalanFileOutputStream.hpp:112
virtual void doFlush()=0
Flush the stream.
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
Definition: XalanOutputStream.hpp:47
Definition: XalanDOMString.hpp:42
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:33
virtual const XalanDOMChar * getType() const
Retrieve type of exception.
Definition: XalanFileOutputStream.hpp:132
Definition: XalanOutputStream.hpp:287
virtual void writeData(const char *theBuffer, size_type theBufferLength)=0
Write the data in the buffer.

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