aboutsummaryrefslogtreecommitdiff
path: root/src/stable/sio.h
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.h
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.h')
-rw-r--r--src/stable/sio.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/stable/sio.h b/src/stable/sio.h
index d9761b2..2d4a104 100644
--- a/src/stable/sio.h
+++ b/src/stable/sio.h
@@ -8,13 +8,16 @@
8#ifndef BU_SIO_H 8#ifndef BU_SIO_H
9#define BU_SIO_H 9#define BU_SIO_H
10 10
11#include "bu/stdstream.h"
12#include "bu/formatter.h" 11#include "bu/formatter.h"
13 12
14namespace Bu 13namespace Bu
15{ 14{
16 extern Bu::StdStream sioRaw; 15 class StreamStack;
16
17 extern Bu::StreamStack sioRaw;
17 extern Bu::Formatter sio; 18 extern Bu::Formatter sio;
19 extern Bu::StreamStack serrRaw;
20 extern Bu::Formatter serr;
18 21
19 Bu::String::FormatProxy print( Bu::Stream &s, const Bu::String &str ); 22 Bu::String::FormatProxy print( Bu::Stream &s, const Bu::String &str );
20 Bu::String::FormatProxy print( const Bu::String &str ); 23 Bu::String::FormatProxy print( const Bu::String &str );