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)
 Create file stream.
 FXFileStream (const FXString &filename, FXStreamDirection save_or_load=FXStreamLoad, FXuval size=8192UL)
 Create and open file stream.
FXbool open (const FXString &filename, FXStreamDirection save_or_load=FXStreamLoad, FXuval size=8192UL)
 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 close ()
 Close file stream.
FXlong position () const
 Get position.
virtual FXbool position (FXlong offset, FXWhence whence=FXFromStart)
 Move to position.
FXFileStreamoperator<< (const FXuchar &v)
 Save single items to stream.
FXFileStreamoperator<< (const FXchar &v)
FXFileStreamoperator<< (const FXbool &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, FXuval n)
 Save arrays of items to stream.
FXFileStreamsave (const FXchar *p, FXuval n)
FXFileStreamsave (const FXbool *p, FXuval n)
FXFileStreamsave (const FXushort *p, FXuval n)
FXFileStreamsave (const FXshort *p, FXuval n)
FXFileStreamsave (const FXuint *p, FXuval n)
FXFileStreamsave (const FXint *p, FXuval n)
FXFileStreamsave (const FXfloat *p, FXuval n)
FXFileStreamsave (const FXdouble *p, FXuval n)
FXFileStreamsave (const FXlong *p, FXuval n)
FXFileStreamsave (const FXulong *p, FXuval n)
FXFileStreamoperator>> (FXuchar &v)
 Load single items from stream.
FXFileStreamoperator>> (FXchar &v)
FXFileStreamoperator>> (FXbool &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, FXuval n)
 Load arrays of items from stream.
FXFileStreamload (FXchar *p, FXuval n)
FXFileStreamload (FXbool *p, FXuval n)
FXFileStreamload (FXushort *p, FXuval n)
FXFileStreamload (FXshort *p, FXuval n)
FXFileStreamload (FXuint *p, FXuval n)
FXFileStreamload (FXint *p, FXuval n)
FXFileStreamload (FXfloat *p, FXuval n)
FXFileStreamload (FXdouble *p, FXuval n)
FXFileStreamload (FXlong *p, FXuval n)
FXFileStreamload (FXulong *p, FXuval n)
FXFileStreamsaveObject (const FXObject *v)
 Save object.
FXFileStreamloadObject (FXObject *&v)
 Load object.
virtual ~FXFileStream ()
 Destructor.
- Public Member Functions inherited from FX::FXStream
 FXStream (const FXObject *cont=NULL)
 Construct stream with given container object.
FXbool open (FXStreamDirection save_or_load, FXuchar *data=NULL, FXuval size=8192UL, FXbool owned=false)
 Open stream for reading (FXStreamLoad) or for writing (FXStreamSave).
virtual FXbool flush ()
 Flush buffer.
FXuval getSpace () const
 Get available buffer space.
void setSpace (FXuval sp)
 Set available buffer space.
void setOwned (FXbool owned)
 Set buffer ownership flag.
FXbool isOwned () const
 Get buffer ownership flag.
FXStreamStatus status () const
 Get status code.
FXbool eof () const
 Return true if at end of file or error.
void setError (FXStreamStatus err)
 Set status code.
FXStreamDirection direction () const
 Obtain stream direction.
const FXObjectcontainer () const
 Get parent object.
void swapBytes (FXbool s)
 Change swap bytes flag.
FXbool swapBytes () const
 Get state of the swap bytes flag.
void setBigEndian (FXbool big)
 Set stream to big endian mode if true.
FXbool isBigEndian () const
 Return true if big endian mode.
FXStreamaddObject (const FXObject *v)
 Add object without saving or loading.
virtual ~FXStream ()
 Destructor.

Protected Member Functions

virtual FXuval writeBuffer (FXuval count)
 Write at least count bytes from the buffer; returns number of bytes available to be written.
virtual FXuval readBuffer (FXuval count)
 Read at least count bytes into the buffer; returns number of bytes available to be read.

Protected Attributes

FXFile file
- Protected Attributes inherited from FX::FXStream
FXHash hash
const FXObjectparent
FXuchar * begptr
FXuchar * endptr
FXuchar * wrptr
FXuchar * rdptr
FXlong pos
FXStreamDirection dir
FXStreamStatus code
FXuint seq
FXbool owns
FXbool swap

Detailed Description

File Store Definition.


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

Copyright © 1997-2016 Jeroen van der Zijp