Panda3D
Public Types | Public Member Functions

FileStream Class Reference

Implements a C++ stream object suitable for reading from and/or writing to files on disk. More...

Inheritance diagram for FileStream:
iostream istream ostream ios ios ios_base ios_base

List of all members.

Public Types

enum  openmode
enum  openmode
enum  seekdir { beg = 0, cur = 1, end = 2 }
enum  seekdir { beg = 0, cur = 1, end = 2 }

Public Member Functions

 FileStream ()
 FileStream (string filename, openmode mode)
 FileStream (string filename)
bool bad ()
bool bad ()
 clear ()
 clear ()
 close ()
bool eof ()
bool eof ()
bool fail ()
bool fail ()
 flush ()
int get ()
bool good ()
bool good ()
 open (string filename, openmode mode)
 open (string filename)
 put (char c)
 seekg (long int off, seekdir dir)
 seekg (unsigned long int pos)
 seekp (unsigned long int pos)
 seekp (long int off, seekdir dir)
unsigned long int tellg ()
unsigned long int tellp ()

Detailed Description

Implements a C++ stream object suitable for reading from and/or writing to files on disk.

This is similar to fstream, 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 openmode [inherited]
enum seekdir [inherited]
Enumerator:
beg 
cur 
end 
enum seekdir [inherited]
Enumerator:
beg 
cur 
end 

Constructor & Destructor Documentation

FileStream ( string  filename,
openmode  mode 
)
FileStream ( string  filename)

Member Function Documentation

bool bad ( ) [inherited]
bool bad ( ) [inherited]
clear ( ) [inherited]
clear ( ) [inherited]
close ( )
bool eof ( ) [inherited]
bool eof ( ) [inherited]
bool fail ( ) [inherited]
bool fail ( ) [inherited]
flush ( ) [inherited]

Reimplemented from ostream.

Reimplemented in SocketStream.

int get ( ) [inherited]
bool good ( ) [inherited]
bool good ( ) [inherited]
open ( string  filename)
open ( string  filename,
openmode  mode 
)
put ( char  c) [inherited]
seekg ( unsigned long int  pos) [inherited]
seekg ( long int  off,
seekdir  dir 
) [inherited]
seekp ( unsigned long int  pos) [inherited]
seekp ( long int  off,
seekdir  dir 
) [inherited]
unsigned long int tellg ( ) [inherited]
unsigned long int tellp ( ) [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties