#include <gauge3d/files/diskfile.h>
Inherits GAUGE3D::GFile.
Public Types | |
enum | tOpenFlags { NOCREATE = 0, CREATE = 1 << 8, NOREPLACE = 1 << 9, TRUNCATE = 1 << 10 } |
Flags specified with Open(). More... | |
Public Methods | |
GDiskFile () | |
Create without openning a file. | |
GDiskFile (GString filename,int flags) | |
Create and open a file. More... | |
virtual | ~GDiskFile () |
Close the file. | |
bool | Open (GString filename,int flags) |
Create and open a file. More... | |
void | Close () |
Close the file. | |
bool | IsOpen () |
Returns true if the file is open. | |
virtual int | Size () |
Gets the size of the file in bytes. | |
virtual bool | Truncate () |
Truncates the file to zero length. Returns false if file was not writable. | |
virtual pGRawIStream | GetRawInputStream () |
Get a GRawIStream for the file. May be null if the file is not readable. | |
virtual pGRawOStream | GetRawOutputStream () |
Get a GRawOStream for the file. May be null if the file is not writeable. | |
virtual pFileMap | Map (int offset,int size,int flags) |
Maps a portion of the file to memory. More... | |
virtual GString | MapToDisk () |
Copies the file to a temporary file on disk, if it is not already on the disk. More... | |
virtual GString | Name () |
Get the name of the file. More... |
|
Flags specified with Open().
|
|
Create and open a file.
|
|
Create and open a file.
|
|
Maps a portion of the file to memory.
Reimplemented from GAUGE3D::GFile. |
|
Copies the file to a temporary file on disk, if it is not already on the disk.
Reimplemented from GAUGE3D::GFile. |
|
Get the name of the file.
Reimplemented from GAUGE3D::GFile. |