21 #ifndef FXFILESTREAM_H 22 #define FXFILESTREAM_H 36 virtual FXuval writeBuffer(FXuval count);
37 virtual FXuval readBuffer(FXuval count);
47 FXFileStream(
const FXString& filename,FXStreamDirection save_or_load=FXStreamLoad,FXuval size=8192UL);
53 FXbool open(
const FXString& filename,FXStreamDirection save_or_load=FXStreamLoad,FXuval size=8192UL);
56 virtual FXbool close();
62 virtual FXbool position(FXlong offset,FXWhence whence=FXFromStart);
80 FXFileStream& save(
const FXbool* p,FXuval n){
FXStream::save(p,n);
return *
this; }
81 FXFileStream& save(
const FXushort* p,FXuval n){
FXStream::save(p,n);
return *
this; }
82 FXFileStream& save(
const FXshort* p,FXuval n){
FXStream::save(p,n);
return *
this; }
83 FXFileStream& save(
const FXuint* p,FXuval n){
FXStream::save(p,n);
return *
this; }
84 FXFileStream& save(
const FXint* p,FXuval n){
FXStream::save(p,n);
return *
this; }
85 FXFileStream& save(
const FXfloat* p,FXuval n){
FXStream::save(p,n);
return *
this; }
86 FXFileStream& save(
const FXdouble* p,FXuval n){
FXStream::save(p,n);
return *
this; }
87 FXFileStream& save(
const FXlong* p,FXuval n){
FXStream::save(p,n);
return *
this; }
88 FXFileStream& save(
const FXulong* p,FXuval n){
FXStream::save(p,n);
return *
this; }
106 FXFileStream& load(FXbool* p,FXuval n){
FXStream::load(p,n);
return *
this; }
107 FXFileStream& load(FXushort* p,FXuval n){
FXStream::load(p,n);
return *
this; }
108 FXFileStream& load(FXshort* p,FXuval n){
FXStream::load(p,n);
return *
this; }
109 FXFileStream& load(FXuint* p,FXuval n){
FXStream::load(p,n);
return *
this; }
110 FXFileStream& load(FXint* p,FXuval n){
FXStream::load(p,n);
return *
this; }
111 FXFileStream& load(FXfloat* p,FXuval n){
FXStream::load(p,n);
return *
this; }
112 FXFileStream& load(FXdouble* p,FXuval n){
FXStream::load(p,n);
return *
this; }
113 FXFileStream& load(FXlong* p,FXuval n){
FXStream::load(p,n);
return *
this; }
114 FXFileStream& load(FXulong* p,FXuval n){
FXStream::load(p,n);
return *
this; }
FXFileStream & operator>>(TYPE *&obj)
Load object.
Definition: FXFileStream.h:124
FXStream & save(const FXuchar *p, FXuval n)
Save arrays of items to stream.
FXFileStream & operator<<(const TYPE *obj)
Save object.
Definition: FXFileStream.h:128
FXStream & operator>>(FXuchar &v)
Load single items from stream.
FXStream & saveObject(const FXObject *v)
Save object.
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXlong position() const
Get position.
Definition: FXFileStream.h:59
FXFileStream & operator>>(FXuchar &v)
Load single items from stream.
Definition: FXFileStream.h:91
Definition: FX4Splitter.h:28
FXFileStream & saveObject(const FXObject *v)
Save object.
Definition: FXFileStream.h:117
FXStream & operator<<(const FXuchar &v)
Save single items to stream.
File Store Definition.
Definition: FXFileStream.h:32
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
FXStream & loadObject(FXObject *&v)
Load object.
FXFileStream & load(FXuchar *p, FXuval n)
Load arrays of items from stream.
Definition: FXFileStream.h:104
FXStream & load(FXuchar *p, FXuval n)
Load arrays of items from stream.
Low level file access.
Definition: FXFile.h:34
FXlong position() const
Get position.
Definition: FXStream.h:164
FXFileStream & save(const FXuchar *p, FXuval n)
Save arrays of items to stream.
Definition: FXFileStream.h:78
FXFileStream & loadObject(FXObject *&v)
Load object.
Definition: FXFileStream.h:120
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42
FXFileStream & operator<<(const FXuchar &v)
Save single items to stream.
Definition: FXFileStream.h:65