DCL
4.0
Loading...
Searching...
No Matches
XOutputStreamWriter.cpp
Go to the documentation of this file.
1
2
#include <
dcl/Config.h
>
3
4
#if __DCL_WINDOWS
5
#include <windows.h>
6
#endif
7
8
#include <
dcl/XOutputStreamWriter.h
>
9
10
#if __DCL_HAVE_ALLOC_DEBUG
11
#undef __DCL_ALLOC_LEVEL
12
#define __DCL_ALLOC_LEVEL __DCL_ALLOC_INTERNAL
13
#endif
14
15
#if __DCL_DEBUG
16
#undef __THIS_FILE__
17
static
const
char_t
__THIS_FILE__
[] =
__T
(
"dcl/XOutputStreamWriter.cpp"
);
18
#endif
19
20
__DCL_BEGIN_NAMESPACE
21
22
IMPLEMENT_CLASSINFO
(
XOutputStreamWriter
,
OutputStreamWriter
)
23
24
void
XOutputStreamWriter::close
()
25
__DCL_THROWS1
(
IOException
*)
26
{
27
Thread::SingleLockMutex
lockAndUnlock(__lock);
28
OutputStreamWriter::close
();
29
}
30
31
void
XOutputStreamWriter::flush
()
32
__DCL_THROWS1
(
IOException
*)
33
{
34
Thread::SingleLockMutex
lockAndUnlock(
__lock
);
35
OutputStreamWriter::flush
();
36
}
37
38
Writer
& XOutputStreamWriter::write(
const
wchar_t
* _buf,
size_t
_n)
39
__DCL_THROWS1
(
IOException
*)
40
{
41
Thread::SingleLockMutex
lockAndUnlock(__lock);
42
return
OutputStreamWriter::write
(_buf, _n);
43
}
44
45
int
XOutputStreamWriter::vprintf(
const
wchar_t
* _format, va_list _arglist)
46
__DCL_THROWS1
(
IOException
*)
47
{
48
Thread::SingleLockMutex
lockAndUnlock(__lock);
49
return
OutputStreamWriter::vprintf(_format, _arglist);
50
}
51
52
__DCL_END_NAMESPACE
53
__THIS_FILE__
#define __THIS_FILE__
Definition
_trace.h:14
Config.h
char_t
wchar_t char_t
Definition
Config.h:275
__DCL_THROWS1
#define __DCL_THROWS1(e)
Definition
Config.h:167
IMPLEMENT_CLASSINFO
#define IMPLEMENT_CLASSINFO(class_name, base_class_name)
Definition
Object.h:228
__T
#define __T(str)
Definition
Object.h:44
XOutputStreamWriter.h
IOException
Definition
Exception.h:93
OutputStreamWriter
Definition
OutputStreamWriter.h:26
OutputStreamWriter::close
virtual void close() __DCL_THROWS1(IOException *)
Definition
OutputStreamWriter.cpp:90
OutputStreamWriter::write
virtual Writer & write(const wchar_t *_buf, size_t _n) __DCL_THROWS1(IOException *)
Definition
OutputStreamWriter.cpp:129
OutputStreamWriter::flush
virtual void flush() __DCL_THROWS1(IOException *)
Definition
OutputStreamWriter.cpp:121
Thread::SingleLockMutex
SingleLock< Mutex > SingleLockMutex
Definition
Thread.h:403
Writer
Definition
Writer.h:31
XOutputStreamWriter
Definition
XOutputStreamWriter.h:24
XOutputStreamWriter::__lock
Thread::Mutex __lock
Definition
XOutputStreamWriter.h:50
src
DCLCore
XOutputStreamWriter.cpp
Generated by
1.14.0