diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-09-05 21:23:44 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-09-05 21:23:44 +0000 |
commit | 50b89841463d7724e7e20dad19da8bd61d49a06c (patch) | |
tree | 14259e9596fd741d922b881bc8e3df0d647f4281 /src/stable/sio.cpp | |
parent | e62311adb3ad71a4a04521544fb12070336f17d2 (diff) | |
download | libbu++-50b89841463d7724e7e20dad19da8bd61d49a06c.tar.gz libbu++-50b89841463d7724e7e20dad19da8bd61d49a06c.tar.bz2 libbu++-50b89841463d7724e7e20dad19da8bd61d49a06c.tar.xz libbu++-50b89841463d7724e7e20dad19da8bd61d49a06c.zip |
Bu::StdStream can be set to print to stderror now, and sio.h now declares serr
and serrRaw. Also, they are now StreamStacks, which means you can change what
type of stream they read/write to, and also add filters.
Diffstat (limited to 'src/stable/sio.cpp')
-rw-r--r-- | src/stable/sio.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stable/sio.cpp b/src/stable/sio.cpp index 66db152..8ecb4ad 100644 --- a/src/stable/sio.cpp +++ b/src/stable/sio.cpp | |||
@@ -6,9 +6,13 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "bu/sio.h" | 8 | #include "bu/sio.h" |
9 | #include "bu/streamstack.h" | ||
10 | #include "bu/stdstream.h" | ||
9 | 11 | ||
10 | Bu::StdStream Bu::sioRaw; | 12 | Bu::StreamStack Bu::sioRaw( new Bu::StdStream() ); |
11 | Bu::Formatter Bu::sio( Bu::sioRaw ); | 13 | Bu::Formatter Bu::sio( Bu::sioRaw ); |
14 | Bu::StreamStack Bu::serrRaw( new Bu::StdStream( Bu::StdStream::StdError ) ); | ||
15 | Bu::Formatter Bu::serr( Bu::serrRaw ); | ||
12 | 16 | ||
13 | class PrintEndAction : public Bu::String::FormatProxyEndAction | 17 | class PrintEndAction : public Bu::String::FormatProxyEndAction |
14 | { | 18 | { |