repo.or.cz
/
wvstreams.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix compilation with old g++ 3.3.5 and debian-sarge.
[wvstreams.git]
/
streams
/
wvlogstream.cc
blob
6de89a4d2b0a5c73809be7d9787ae2c9704f8346
1
#include
"wvlogstream.h"
2
3
4
WvLogStream
::
WvLogStream
(
IWvStream
*
s
,
WvLog
::
LogLevel _max_level
)
5
:
WvLogRcv
(
_max_level
)
6
{
7
cloned
=
s
;
8
}
9
10
11
WvLogStream
::~
WvLogStream
()
12
{
13
WVRELEASE
(
cloned
);
14
}
15
16
17
void
WvLogStream
::
_mid_line
(
const char
*
str
,
size_t
len
)
18
{
19
if
(
cloned
)
20
cloned
->
write
(
str
,
len
);
21
}