#include <GStream.h>
Inheritance diagram for GStream:

Public Member Functions | |
| virtual int | Open (char *Str=0, int Int=0) |
| virtual bool | IsOpen () |
| Returns true is the connection is still open. | |
| virtual int | Close () |
| virtual int64 | GetSize () |
| Gets the size of the stream. | |
| virtual int64 | SetSize (int64 Size) |
| Sets the size of the stream. | |
| virtual int64 | GetPos () |
| Gets the current position of the stream. | |
| virtual int64 | SetPos (int64 Pos) |
| Sets the current position of the stream. | |
| virtual int | Read (void *Buffer, int Size, int Flags=0) |
| Read bytes out of the stream. | |
| virtual int | Write (void *Buffer, int Size, int Flags=0) |
| Write bytes to the stream. | |
| virtual GStreamI * | Clone () |
| Creates a dynamically allocated copy of the same type of stream. This new stream is not connected to anything. | |
| virtual int | Print (char *Format,...) |
| Formats a string and then writes it. | |
Defines the API for all the streaming data classes. Allows applications to plug different types of date streams into functions that take a GStream. Typically this means being able to swap files with sockets or data buffers etc.
|
|
Creates a dynamically allocated copy of the same type of stream. This new stream is not connected to anything.
Reimplemented in GMemStream. |
|
|
Closes the connection
Reimplemented in MFile, GFile, GMemStream, GSocket, and GFile. |
|
|
Gets the current position of the stream.
Reimplemented in MFile, GFile, GMemStream, and GSocket. |
|
|
Gets the size of the stream.
Reimplemented in MFile, GBytePipe, GFile, GMemStream, GSocket, and GFile. |
|
||||||||||||
|
Open a connection
Reimplemented in MFile, GFile, GMemStream, GSocket, and GFile. |
|
||||||||||||||||
|
Read bytes out of the stream.
Reimplemented in MFile, GBytePipe, GFile, GMemStream, and GSocket. |
|
|
Sets the current position of the stream.
Reimplemented in MFile, GFile, GMemStream, and GSocket. |
|
|
Sets the size of the stream.
Reimplemented in MFile, GFile, GMemStream, and GSocket. |
|
||||||||||||||||
|
Write bytes to the stream.
Reimplemented in MFile, GBytePipe, GFile, GMemStream, and GSocket. |
1.4.1