Panda3D
Public Types | Public Member Functions

IFileStream Class Reference

Implements a C++ stream object suitable for reading from files on disk. More...

Inheritance diagram for IFileStream:
istream ios ios_base

List of all members.

Public Types

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

Public Member Functions

 IFileStream ()
 IFileStream (string filename, openmode mode)
 IFileStream (string filename)
bool bad ()
 clear ()
 close ()
bool eof ()
bool fail ()
int get ()
bool good ()
 open (string filename, openmode mode)
 open (string filename)
 seekg (unsigned long int pos)
 seekg (long int off, seekdir dir)
unsigned long int tellg ()

Detailed Description

Implements a C++ stream object suitable for reading from files on disk.

This is similar to ifstream, 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

IFileStream ( string  filename,
openmode  mode 
)
IFileStream ( string  filename)

Member Function Documentation

bool bad ( ) [inherited]
clear ( ) [inherited]
close ( )
bool eof ( ) [inherited]
bool fail ( ) [inherited]
int get ( ) [inherited]
bool good ( ) [inherited]
open ( string  filename)
open ( string  filename,
openmode  mode 
)
seekg ( unsigned long int  pos) [inherited]
seekg ( long int  off,
seekdir  dir 
) [inherited]
unsigned long int tellg ( ) [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties