diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-01-23 16:44:10 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-01-23 16:44:10 +0000 |
commit | 51f9aa16cbdd78c0b31483df26d0f7e81376f974 (patch) | |
tree | d00b95cbcd607fc4d6a70d133794d69b99491d55 /src/stream.h | |
parent | 1ea5bd399b081b598435e52854107bc506640a28 (diff) | |
download | libbu++-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream.h b/src/stream.h index 078c045..f3cd882 100644 --- a/src/stream.h +++ b/src/stream.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <stdint.h> | 11 | #include <stdint.h> |
12 | #include <stdio.h> | 12 | #include <stdio.h> |
13 | 13 | ||
14 | #include "bu/fstring.h" | ||
15 | |||
14 | namespace Bu | 16 | namespace Bu |
15 | { | 17 | { |
16 | /** | 18 | /** |
@@ -50,6 +52,8 @@ namespace Bu | |||
50 | */ | 52 | */ |
51 | virtual size_t write( const void *pBuf, size_t nBytes ) = 0; | 53 | virtual size_t write( const void *pBuf, size_t nBytes ) = 0; |
52 | 54 | ||
55 | virtual size_t write( const Bu::FString &sBuf ); | ||
56 | |||
53 | /** | 57 | /** |
54 | * Get the current position in the stream. | 58 | * Get the current position in the stream. |
55 | *@returns (long) The current position in the stream. | 59 | *@returns (long) The current position in the stream. |