From 51f9aa16cbdd78c0b31483df26d0f7e81376f974 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 23 Jan 2008 16:44:10 +0000 Subject: 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. --- src/stream.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/stream.cpp') 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 @@ * terms of the license contained in the file LICENSE. */ -#include "stream.h" +#include "bu/stream.h" Bu::Stream::Stream() { @@ -15,3 +15,8 @@ Bu::Stream::~Stream() { } +size_t Bu::Stream::write( const Bu::FString &sBuf ) +{ + return write( sBuf.getStr(), sBuf.getSize() ); +} + -- cgit v1.2.3