DCL
4.0
Loading...
Searching...
No Matches
XBytesOutputStream.h
Go to the documentation of this file.
1
#ifndef __DCL_XBYTES_OUTPUT_STREAM_H__
2
#define __DCL_XBYTES_OUTPUT_STREAM_H__ 20110221
3
4
#ifndef __DCL_BYTES_OUTPUT_STREAM_H__
5
#include <
dcl/BytesOutputStream.h
>
6
#endif
7
#ifndef __DCL_THREAD_H__
8
#include <
dcl/Thread.h
>
9
#endif
10
11
__DCL_BEGIN_NAMESPACE
12
21
22
class
DCLCAPI
XBytesOutputStream
:
public
BytesOutputStream
23
{
24
DECLARE_CLASSINFO
(
XFileWriter
)
25
public
:
26
XBytesOutputStream
(
size_t
_capacity = 4096);
27
28
virtual
void
close()
29
__DCL_THROWS1
(
IOException
*);
30
31
virtual
OutputStream
& write(
const
void
* _buf,
size_t
_n)
32
__DCL_THROWS1
(
IOException
*);
33
34
virtual
int
vprintf(
const
char
* _format, va_list _arglist)
35
__DCL_THROWS1
(
IOException
*);
36
37
virtual
size_t
writeTo(
OutputStream
& _output);
38
39
virtual
size_t
flushTo(
OutputStream
& _output)
40
__DCL_THROWS1
(
IOException
*);
41
42
virtual
void
reset();
43
44
protected
:
45
Thread::Mutex
__lock
;
46
};
47
48
inline
XBytesOutputStream::XBytesOutputStream(
size_t
_capacity)
49
:
BytesOutputStream
(_capacity)
50
{
51
}
52
53
__DCL_END_NAMESPACE
54
55
#endif
// __DCL_XBYTES_OUTPUT_STREAM_H__
BytesOutputStream.h
DCLCAPI
#define DCLCAPI
Definition
Config.h:100
__DCL_THROWS1
#define __DCL_THROWS1(e)
Definition
Config.h:167
DECLARE_CLASSINFO
#define DECLARE_CLASSINFO(class_name)
Definition
Object.h:210
Thread.h
BytesOutputStream
Definition
BytesOutputStream.h:24
IOException
Definition
Exception.h:93
OutputStream
Definition
OutputStream.h:31
Thread::Mutex
Definition
Thread.h:264
XBytesOutputStream
Definition
XBytesOutputStream.h:23
XBytesOutputStream::__lock
Thread::Mutex __lock
Definition
XBytesOutputStream.h:45
XFileWriter
Definition
XFileWriter.h:23
include
dcl
XBytesOutputStream.h
Generated by
1.14.0