Panda3D
Public Member Functions | List of all members
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 BasicIosChar BasicIosChar IosBase IosBase

Public Member Functions

 __init__ ()
 
 __init__ (str filename, IosBase::Openmode mode)
 
 close ()
 
 open (str filename, IosBase::Openmode mode)
 
- Public Member Functions inherited from Iostream
 flush ()
 
- Public Member Functions inherited from Istream
int get ()
 
 seekg (Streamoff pos)
 
 seekg (Streamoff off, IosBase::Seekdir dir)
 
Streamoff tellg ()
 
- Public Member Functions inherited from BasicIosChar
bool bad ()
 
 clear ()
 
bool eof ()
 
bool fail ()
 
bool good ()
 
- Public Member Functions inherited from Ostream
 flush ()
 
 put (char c)
 
 seekp (Streamoff pos)
 
 seekp (Streamoff off, IosBase::Seekdir dir)
 
Streamoff tellp ()
 

Additional Inherited Members

- Public Types inherited from IosBase
enum  Iostate
 
enum  Openmode
 
enum  Seekdir { beg = 0, cur = 1, end = 2 }
 

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 Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( str  filename,
IosBase::Openmode  mode 
)

◆ close()

close ( )

◆ open()

open ( str  filename,
IosBase::Openmode  mode 
)