liballofw
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
allofw::ByteStream Class Reference

#include <stream.h>

Public Types

enum  SeekOrigin { BEGIN, END, CURRENT }
 

Public Member Functions

virtual size_t read (void *buffer, size_t length)
 
virtual size_t write (const void *buffer, size_t length)
 
virtual void seek (SeekOrigin origin, std::ptrdiff_t pos)
 
virtual std::ptrdiff_t position ()
 
virtual void flush ()
 
virtual bool canRead ()
 
virtual bool canWrite ()
 
virtual bool canSeek ()
 

Static Public Member Functions

static ByteStreamOpenFile (const char *path, const char *mode)
 
static void Destroy (ByteStream *stream)
 

Protected Member Functions

virtual ~ByteStream ()
 

Member Enumeration Documentation

Enumerator
BEGIN 
END 
CURRENT 

Constructor & Destructor Documentation

virtual allofw::ByteStream::~ByteStream ( )
protectedvirtual

Member Function Documentation

virtual bool allofw::ByteStream::canRead ( )
virtual
virtual bool allofw::ByteStream::canSeek ( )
virtual
virtual bool allofw::ByteStream::canWrite ( )
virtual
static void allofw::ByteStream::Destroy ( ByteStream stream)
static
virtual void allofw::ByteStream::flush ( )
virtual
static ByteStream* allofw::ByteStream::OpenFile ( const char *  path,
const char *  mode 
)
static
virtual std::ptrdiff_t allofw::ByteStream::position ( )
virtual
virtual size_t allofw::ByteStream::read ( void *  buffer,
size_t  length 
)
virtual
virtual void allofw::ByteStream::seek ( SeekOrigin  origin,
std::ptrdiff_t  pos 
)
virtual
virtual size_t allofw::ByteStream::write ( const void *  buffer,
size_t  length 
)
virtual

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