Panda3D
|
This is a special kind of FileReference class that automatically deletes the file in question when it is deleted. More...
#include "temporaryFile.h"
Public Member Functions | |
TemporaryFile (const Filename &filename) | |
virtual | ~TemporaryFile () |
The destructor is responsible for removing the file if it exists. | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
This is a special kind of FileReference class that automatically deletes the file in question when it is deleted.
It is not responsible for creating, opening, or closing the file, however.
Definition at line 29 of file temporaryFile.h.
TemporaryFile::~TemporaryFile | ( | ) | [virtual] |
The destructor is responsible for removing the file if it exists.
Definition at line 26 of file temporaryFile.cxx.
References Filename::unlink().
static void TemporaryFile::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from FileReference.
Definition at line 38 of file temporaryFile.h.
References FileReference::init_type().