#include <pgfile.h>
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 (std::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 | |
| std::string | getline () |
| read a line from the file. | |
| void | putline (const std::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 |
Definition at line 50 of file pgfile.h.
|
|
The constructor can only be called from PG_FileArchive or any subclass. PG_File object are create by PG_FileArchive::OpenFile(...)
Definition at line 32 of file pgfile.cpp. |
|
|
Definition at line 35 of file pgfile.cpp. |
|
|
check for the end of the file.
Definition at line 65 of file pgfile.cpp. Referenced by getline(), and PG_Theme::Load(). |
|
|
return the length of the file (in bytes)
Definition at line 77 of file pgfile.cpp. Referenced by PG_Layout::Load(), and PG_FileArchive::ReadFile(). |
|
|
get a single character from the file
Definition at line 81 of file pgfile.cpp. References read(). Referenced by getline(). |
|
|
read a line from the file. This function reads a CR/LF terminated line of text from the file. Any trailing carriage return and linefeed characters will be skipped. Definition at line 90 of file pgfile.cpp. |
|
|
write a line to the file
Definition at line 105 of file pgfile.cpp. References write(). |
|
||||||||||||||||
|
read records from the stream
Definition at line 57 of file pgfile.cpp. |
|
||||||||||||
|
read bytes from the stream
Definition at line 41 of file pgfile.cpp. Referenced by getc(), PG_Theme::Load(), PG_Layout::Load(), and PG_FileArchive::ReadFile(). |
|
|
set the file pointer to a given position
Definition at line 73 of file pgfile.cpp. |
|
|
get the current position in the file stream
Definition at line 69 of file pgfile.cpp. |
|
||||||||||||||||
|
write records to the stream
Definition at line 61 of file pgfile.cpp. |
|
|
write bytes to the stream
Definition at line 53 of file pgfile.cpp. References write(). |
|
|
write bytes to the stream
Definition at line 49 of file pgfile.cpp. References write(). |
|
||||||||||||
|
write bytes to the stream
Definition at line 45 of file pgfile.cpp. |
|
|
|
1.4.2