From 50b89841463d7724e7e20dad19da8bd61d49a06c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 5 Sep 2012 21:23:44 +0000 Subject: 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. --- src/stable/sio.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/stable/sio.cpp') 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 @@ */ #include "bu/sio.h" +#include "bu/streamstack.h" +#include "bu/stdstream.h" -Bu::StdStream Bu::sioRaw; +Bu::StreamStack Bu::sioRaw( new Bu::StdStream() ); Bu::Formatter Bu::sio( Bu::sioRaw ); +Bu::StreamStack Bu::serrRaw( new Bu::StdStream( Bu::StdStream::StdError ) ); +Bu::Formatter Bu::serr( Bu::serrRaw ); class PrintEndAction : public Bu::String::FormatProxyEndAction { -- cgit v1.2.3