Panda3D
|
Implements a C++ stream object suitable for writing to files on disk. More...
Public Types | |
enum | openmode |
enum | seekdir { beg = 0, cur = 1, end = 2 } |
Public Member Functions | |
OFileStream () | |
OFileStream (string filename, openmode mode) | |
OFileStream (string filename) | |
bool | bad () |
clear () | |
close () | |
bool | eof () |
bool | fail () |
flush () | |
bool | good () |
open (string filename, openmode mode) | |
open (string filename) | |
put (char c) | |
seekp (unsigned long int pos) | |
seekp (long int off, seekdir dir) | |
unsigned long int | tellp () |
Implements a C++ stream object suitable for writing to files on disk.
This is similar to ofstream, but it provides low-level support for Panda's simple-threading implementation (using this interface will block only the current thread, rather than the entire process, on I/O waits).
enum openmode [inherited] |
enum seekdir [inherited] |
OFileStream | ( | ) |
OFileStream | ( | string | filename, |
openmode | mode | ||
) |
OFileStream | ( | string | filename | ) |
bool bad | ( | ) | [inherited] |
clear | ( | ) | [inherited] |
close | ( | ) |
bool eof | ( | ) | [inherited] |
bool fail | ( | ) | [inherited] |
flush | ( | ) | [inherited] |
Reimplemented in iostream, OSocketStream, SocketStream, and MultiplexStream.
bool good | ( | ) | [inherited] |
open | ( | string | filename | ) |
open | ( | string | filename, |
openmode | mode | ||
) |
put | ( | char | c | ) | [inherited] |
seekp | ( | unsigned long int | pos | ) | [inherited] |
unsigned long int tellp | ( | ) | [inherited] |