diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 05:30:43 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 05:30:43 +0000 |
commit | 7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2 (patch) | |
tree | e2d4bfccd81070adf7294ee54db2399df0c7171f /src/streamstack.h | |
parent | f5aca1a1b402bd7ebc944dc6e6fe65828d863365 (diff) | |
download | libbu++-7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2.tar.gz libbu++-7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2.tar.bz2 libbu++-7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2.tar.xz libbu++-7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2.zip |
Wow, got the Stream changes propegated, all tests build with string instead of
fstring, and updated the copyright notice to extend to 2011
Diffstat (limited to 'src/streamstack.h')
-rw-r--r-- | src/streamstack.h | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/streamstack.h b/src/streamstack.h index 2554bd2..846935b 100644 --- a/src/streamstack.h +++ b/src/streamstack.h | |||
@@ -1,3 +1,10 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
1 | #ifndef BU_STREAM_STACK_H | 8 | #ifndef BU_STREAM_STACK_H |
2 | #define BU_STREAM_STACK_H | 9 | #define BU_STREAM_STACK_H |
3 | 10 | ||
@@ -103,14 +110,14 @@ namespace Bu | |||
103 | // | 110 | // |
104 | 111 | ||
105 | virtual void close(); | 112 | virtual void close(); |
106 | virtual size_t read( void *pBuf, size_t nBytes ); | 113 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); |
107 | virtual size_t write( const void *pBuf, size_t nBytes ); | 114 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); |
108 | 115 | ||
109 | virtual size_t write( const Bu::String &sBuf ); | 116 | virtual Bu::size write( const Bu::String &sBuf ); |
110 | virtual long tell(); | 117 | virtual Bu::size tell(); |
111 | virtual void seek( long offset ); | 118 | virtual void seek( Bu::size offset ); |
112 | virtual void setPos( long pos ); | 119 | virtual void setPos( Bu::size pos ); |
113 | virtual void setPosEnd( long pos ); | 120 | virtual void setPosEnd( Bu::size pos ); |
114 | virtual bool isEos(); | 121 | virtual bool isEos(); |
115 | virtual bool isOpen(); | 122 | virtual bool isOpen(); |
116 | virtual void flush(); | 123 | virtual void flush(); |
@@ -121,10 +128,13 @@ namespace Bu | |||
121 | virtual bool isSeekable(); | 128 | virtual bool isSeekable(); |
122 | virtual bool isBlocking(); | 129 | virtual bool isBlocking(); |
123 | virtual void setBlocking( bool bBlocking=true ); | 130 | virtual void setBlocking( bool bBlocking=true ); |
124 | virtual void setSize( long iSize ); | 131 | virtual void setSize( Bu::size iSize ); |
132 | virtual size getSize() const; | ||
133 | virtual size getBlockSize() const; | ||
134 | virtual Bu::String getLocation() const; | ||
125 | 135 | ||
126 | private: | 136 | private: |
127 | void checkStack(); | 137 | void checkStack() const; |
128 | 138 | ||
129 | private: | 139 | private: |
130 | FilterList lFilts; | 140 | FilterList lFilts; |