GStream Class Reference

Virtual base class for a data source or sink. More...

#include <GStream.h>

Inheritance diagram for GStream:

GStreamI GDom GBytePipe GFile GMemStream GSocket GStringPipe

List of all members.

Public Member Functions

int Read (void *Ptr, int Size, int Flags=0)
 Read bytes out of the stream.
int Write (const void *Ptr, int Size, int Flags=0)
 Write bytes to the stream.
virtual int Print (const char *Format,...)
 Formats a string and then writes it.


Detailed Description

Virtual base class for a data source or sink.

Member Function Documentation

int GStream::Read ( void *  Buffer,
int  Size,
int  Flags = 0 
) [inline, virtual]

Read bytes out of the stream.

Returns:
> 0 on succes, which indicates the number of bytes read

Implements GStreamI.

Reimplemented in GBytePipe, GFile, GMemStream, and GSocket.

Referenced by GTarParser::Process(), GdcBmp::ReadImage(), and GProcess::Run().

int GStream::Write ( const void *  Buffer,
int  Size,
int  Flags = 0 
) [inline, virtual]

Write bytes to the stream.

Returns:
> 0 on succes, which indicates the number of bytes written

Implements GStreamI.

Reimplemented in GBytePipe, GFile, GMemStream, and GSocket.

Referenced by Print(), GBytePipe::Push(), GProcess::Run(), and GdcBmp::WriteImage().


The documentation for this class was generated from the following files:

Generated on Wed May 11 07:51:58 2011 for Lgi by  doxygen 1.5.6