#include <GFile.h>
Inheritance diagram for GFile:
Public Member Functions | |
int | Open (char *Name, int Attrib) |
Opens a file. | |
bool | IsOpen () |
Returns non zero if the class is associated with an open file handle. | |
int | Close () |
Closes the file. | |
int | GetOpenMode () |
Gets the mode that the file was openned with. | |
int64 | GetPos () |
Gets the current file pointer. | |
int64 | SetPos (int64 Pos) |
Sets the current file pointer. | |
int64 | GetSize () |
Gets the file size. | |
int64 | SetSize (int64 Size) |
Sets the file size. | |
int | Read (void *Buffer, int Size, int Flags=0) |
Reads bytes into memory from the current file pointer. | |
int | Write (void *Buffer, int Size, int Flags=0) |
Writes bytes from memory to the current file pointer. | |
virtual char * | GetName () |
Gets the path used to open the file. | |
virtual int64 | Seek (int64 To, int Whence) |
Moves the current file pointer. | |
virtual bool | Eof () |
Returns true if the current file pointer is at the end of the file. | |
virtual void | SetStatus (bool s=false) |
Resets the status value. | |
virtual bool | GetStatus () |
Returns true if all operations were successful since the file was openned or SetStatus was used to reset the file's status. | |
virtual void | SetSwap (bool s) |
Sets the swap option. When switched on all integer reads/writes will have their bytes swaped. | |
virtual bool | GetSwap () |
Gets the current swap setting. | |
virtual bool | Open (char *Name, int Attrib) |
virtual bool | Close () |
virtual int | GetSize () |
Gets the size of the stream. | |
int | Print (char *Format,...) |
Formats a string and then writes it. |
|
Closes the connection
Reimplemented from GStream. Reimplemented in MFile. |
|
Gets the current file pointer.
Reimplemented from GStream. Reimplemented in MFile. |
|
Gets the size of the stream.
Reimplemented from GStream. Reimplemented in MFile. |
|
Gets the file size.
Reimplemented from GStream. Reimplemented in MFile. |
|
Open a connection
Reimplemented from GStream. Reimplemented in MFile. |
|
Opens a file.
Reimplemented from GStream. Reimplemented in MFile. |
|
Reads bytes into memory from the current file pointer.
Reimplemented from GStream. Reimplemented in MFile. |
|
Sets the current file pointer.
Reimplemented from GStream. Reimplemented in MFile. |
|
Sets the file size.
Reimplemented from GStream. Reimplemented in MFile. |
|
Writes bytes from memory to the current file pointer.
Reimplemented from GStream. Reimplemented in MFile. |