|
Public Member Functions |
| | ~PG_File () |
| int | read (void *buffer, unsigned int bytestoread) |
| | read bytes from the stream
|
| int | write (void *buffer, unsigned int bytestowrite) |
| | write bytes to the stream
|
| int | write (string &buffer) |
| | write bytes to the stream
|
| int | write (const char *buffer) |
| | write bytes to the stream
|
| int | read (void *buffer, unsigned int objSize, unsigned int objCount) |
| | read records from the stream
|
| int | write (void *buffer, unsigned int objSize, unsigned int objCount) |
| | write records to the stream
|
| bool | eof () |
| | check for the end of the file.
|
| int | tell () |
| | get the current position in the file stream
|
| bool | seek (int pos) |
| | set the file pointer to a given position
|
| int | fileLength () |
| | return the length of the file (in bytes)
|
| char | getc () |
| | get a single character from the file
|
| string | getline () |
| | read a line from the file.
|
| void | putline (const string &line) |
| | write a line to the file
|
Protected Member Functions |
| | PG_File (void *f) |
| | The constructor can only be called from PG_FileArchive or any subclass.
|
Friends |
| class | PG_FileArchive |