Panda3D
Public Types | Public Member Functions

OFileStream Class Reference

Implements a C++ stream object suitable for writing to files on disk. More...

Inheritance diagram for OFileStream:
ostream ios ios_base

List of all members.

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 ()

Detailed Description

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).


Member Enumeration Documentation

enum openmode [inherited]
enum seekdir [inherited]
Enumerator:
beg 
cur 
end 

Constructor & Destructor Documentation

OFileStream ( string  filename,
openmode  mode 
)
OFileStream ( string  filename)

Member Function Documentation

bool bad ( ) [inherited]
clear ( ) [inherited]
close ( )
bool eof ( ) [inherited]
bool fail ( ) [inherited]
flush ( ) [inherited]
bool good ( ) [inherited]
open ( string  filename)
open ( string  filename,
openmode  mode 
)
put ( char  c) [inherited]
seekp ( long int  off,
seekdir  dir 
) [inherited]
seekp ( unsigned long int  pos) [inherited]
unsigned long int tellp ( ) [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties