Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXFileStream Class Reference

File Store Definition. More...

#include <FXFileStream.h>

Inheritance diagram for FX::FXFileStream:

FX::FXStream List of all members.

Public Member Functions

 FXFileStream (const FXObject *cont=NULL)
FXbool open (const FXString &filename, FXStreamDirection save_or_load, unsigned long size=8192)
virtual FXbool close ()
FXlong position () const
virtual FXbool position (FXlong offset, FXWhence whence=FXFromStart)
FXFileStreamoperator<< (const FXuchar &v)
FXFileStreamoperator<< (const FXchar &v)
FXFileStreamoperator<< (const FXushort &v)
FXFileStreamoperator<< (const FXshort &v)
FXFileStreamoperator<< (const FXuint &v)
FXFileStreamoperator<< (const FXint &v)
FXFileStreamoperator<< (const FXfloat &v)
FXFileStreamoperator<< (const FXdouble &v)
FXFileStreamoperator<< (const FXlong &v)
FXFileStreamoperator<< (const FXulong &v)
FXFileStreamsave (const FXuchar *p, unsigned long n)
FXFileStreamsave (const FXchar *p, unsigned long n)
FXFileStreamsave (const FXushort *p, unsigned long n)
FXFileStreamsave (const FXshort *p, unsigned long n)
FXFileStreamsave (const FXuint *p, unsigned long n)
FXFileStreamsave (const FXint *p, unsigned long n)
FXFileStreamsave (const FXfloat *p, unsigned long n)
FXFileStreamsave (const FXdouble *p, unsigned long n)
FXFileStreamsave (const FXlong *p, unsigned long n)
FXFileStreamsave (const FXulong *p, unsigned long n)
FXFileStreamoperator>> (FXuchar &v)
FXFileStreamoperator>> (FXchar &v)
FXFileStreamoperator>> (FXushort &v)
FXFileStreamoperator>> (FXshort &v)
FXFileStreamoperator>> (FXuint &v)
FXFileStreamoperator>> (FXint &v)
FXFileStreamoperator>> (FXfloat &v)
FXFileStreamoperator>> (FXdouble &v)
FXFileStreamoperator>> (FXlong &v)
FXFileStreamoperator>> (FXulong &v)
FXFileStreamload (FXuchar *p, unsigned long n)
FXFileStreamload (FXchar *p, unsigned long n)
FXFileStreamload (FXushort *p, unsigned long n)
FXFileStreamload (FXshort *p, unsigned long n)
FXFileStreamload (FXuint *p, unsigned long n)
FXFileStreamload (FXint *p, unsigned long n)
FXFileStreamload (FXfloat *p, unsigned long n)
FXFileStreamload (FXdouble *p, unsigned long n)
FXFileStreamload (FXlong *p, unsigned long n)
FXFileStreamload (FXulong *p, unsigned long n)
FXFileStreamsaveObject (const FXObject *v)
FXFileStreamloadObject (FXObject *&v)
virtual ~FXFileStream ()

Detailed Description

File Store Definition.


Constructor & Destructor Documentation

FX::FXFileStream::FXFileStream const FXObject cont = NULL  ) 
 

Create file store.

virtual FX::FXFileStream::~FXFileStream  )  [virtual]
 

Destructor.


Member Function Documentation

FXbool FX::FXFileStream::open const FXString filename,
FXStreamDirection  save_or_load,
unsigned long  size = 8192
 

Open binary data file stream; allocate a buffer of the given size for the file I/O; the buffer must be at least 16 bytes.

virtual FXbool FX::FXFileStream::close  )  [virtual]
 

Close file store.

Reimplemented from FX::FXStream.

FXlong FX::FXFileStream::position  )  const [inline]
 

Get position.

Reimplemented from FX::FXStream.

virtual FXbool FX::FXFileStream::position FXlong  offset,
FXWhence  whence = FXFromStart
[virtual]
 

Move to position.

Reimplemented from FX::FXStream.

FXFileStream& FX::FXFileStream::operator<< const FXuchar &  v  )  [inline]
 

Save single items to stream.

Reimplemented from FX::FXStream.

FXFileStream& FX::FXFileStream::save const FXuchar *  p,
unsigned long  n
[inline]
 

Save arrays of items to stream.

Reimplemented from FX::FXStream.

FXFileStream& FX::FXFileStream::operator>> FXuchar &  v  )  [inline]
 

Load single items from stream.

Reimplemented from FX::FXStream.

FXFileStream& FX::FXFileStream::load FXuchar *  p,
unsigned long  n
[inline]
 

Load arrays of items from stream.

Reimplemented from FX::FXStream.

FXFileStream& FX::FXFileStream::saveObject const FXObject v  )  [inline]
 

Save object.

Reimplemented from FX::FXStream.

FXFileStream& FX::FXFileStream::loadObject FXObject *&  v  )  [inline]
 

Load object.

Reimplemented from FX::FXStream.

Copyright © 1997-2005 Jeroen van der Zijp