aboutsummaryrefslogtreecommitdiff
path: root/src/stream.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-01-23 16:44:10 +0000
committerMike Buland <eichlan@xagasoft.com>2008-01-23 16:44:10 +0000
commit51f9aa16cbdd78c0b31483df26d0f7e81376f974 (patch)
treed00b95cbcd607fc4d6a70d133794d69b99491d55 /src/stream.cpp
parent1ea5bd399b081b598435e52854107bc506640a28 (diff)
downloadlibbu++-51f9aa16cbdd78c0b31483df26d0f7e81376f974.tar.gz
libbu++-51f9aa16cbdd78c0b31483df26d0f7e81376f974.tar.bz2
libbu++-51f9aa16cbdd78c0b31483df26d0f7e81376f974.tar.xz
libbu++-51f9aa16cbdd78c0b31483df26d0f7e81376f974.zip
Added a new helper to the Stream classes, a write function that takes a single
Bu::FString reference as a parameter. Unfortunately you need to remember to add "using Stream::write;" to each child class so they can take advantage of it. Strange, no? Also, cleaned up a bunch of header files, I'm trying to move towards headers only including other headers that they absolutely need, otherwise just creating forward decleration sections at the top of each.
Diffstat (limited to '')
-rw-r--r--src/stream.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/stream.cpp b/src/stream.cpp
index 8d976e5..82fe73b 100644
--- a/src/stream.cpp
+++ b/src/stream.cpp
@@ -5,7 +5,7 @@
5 * terms of the license contained in the file LICENSE. 5 * terms of the license contained in the file LICENSE.
6 */ 6 */
7 7
8#include "stream.h" 8#include "bu/stream.h"
9 9
10Bu::Stream::Stream() 10Bu::Stream::Stream()
11{ 11{
@@ -15,3 +15,8 @@ Bu::Stream::~Stream()
15{ 15{
16} 16}
17 17
18size_t Bu::Stream::write( const Bu::FString &sBuf )
19{
20 return write( sBuf.getStr(), sBuf.getSize() );
21}
22