aboutsummaryrefslogtreecommitdiff
path: root/src/streamstack.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-01-20 18:09:04 +0000
committerMike Buland <eichlan@xagasoft.com>2011-01-20 18:09:04 +0000
commit393f1b414746a7f1977971dd7659dd2b47092b11 (patch)
tree81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/streamstack.h
parentc259f95bd0e58b247940a339bb9b4b401b4e9438 (diff)
parent7e25a863325dc3e9762397e700030969e093b087 (diff)
downloadlibbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz
libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2
libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz
libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically update your projects.
Diffstat (limited to 'src/streamstack.h')
-rw-r--r--src/streamstack.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/src/streamstack.h b/src/streamstack.h
index f40a760..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::FString &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;