Panda3D
Public Member Functions | List of all members
OFileStream Class Reference

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

Inheritance diagram for OFileStream:
Ostream Ios IosBase

Public Member Functions

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

Additional Inherited Members

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

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

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( str  filename,
IosBase::Openmode  mode 
)

◆ close()

close ( )

◆ open()

open ( str  filename,
IosBase::Openmode  mode 
)