aboutsummaryrefslogtreecommitdiff
path: root/src/stable/stdstream.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/stdstream.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 '')
-rw-r--r--src/stable/stdstream.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/stable/stdstream.h b/src/stable/stdstream.h
index c3ab153..d71d95d 100644
--- a/src/stable/stdstream.h
+++ b/src/stable/stdstream.h
@@ -19,7 +19,12 @@ namespace Bu
19 class StdStream : public Stream 19 class StdStream : public Stream
20 { 20 {
21 public: 21 public:
22 StdStream(); 22 enum OutMode
23 {
24 StdOut,
25 StdError
26 };
27 StdStream( OutMode eOut=StdOut );
23 virtual ~StdStream(); 28 virtual ~StdStream();
24 29
25 virtual void close(); 30 virtual void close();
@@ -43,7 +48,10 @@ namespace Bu
43 virtual void setSize( size iSize ); 48 virtual void setSize( size iSize );
44 virtual size getSize() const; 49 virtual size getSize() const;
45 virtual size getBlockSize() const; 50 virtual size getBlockSize() const;
46 virtual Bu::String getLocation() const; 51 virtual Bu::String getLocation() const;
52
53 private:
54 OutMode eOut;
47 }; 55 };
48} 56}
49 57