aboutsummaryrefslogtreecommitdiff
path: root/src/stable/sio.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-09-05 21:23:44 +0000
committerMike Buland <eichlan@xagasoft.com>2012-09-05 21:23:44 +0000
commit50b89841463d7724e7e20dad19da8bd61d49a06c (patch)
tree14259e9596fd741d922b881bc8e3df0d647f4281 /src/stable/sio.cpp
parente62311adb3ad71a4a04521544fb12070336f17d2 (diff)
downloadlibbu++-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.cpp6
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
10Bu::StdStream Bu::sioRaw; 12Bu::StreamStack Bu::sioRaw( new Bu::StdStream() );
11Bu::Formatter Bu::sio( Bu::sioRaw ); 13Bu::Formatter Bu::sio( Bu::sioRaw );
14Bu::StreamStack Bu::serrRaw( new Bu::StdStream( Bu::StdStream::StdError ) );
15Bu::Formatter Bu::serr( Bu::serrRaw );
12 16
13class PrintEndAction : public Bu::String::FormatProxyEndAction 17class PrintEndAction : public Bu::String::FormatProxyEndAction
14{ 18{