Panda3D
temporaryFile.cxx
1 // Filename: temporaryFile.cxx
2 // Created by: drose (23Jun11)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "temporaryFile.h"
16 
17 TypeHandle TemporaryFile::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: TemporaryFile::Destructor
21 // Access: Published, Virtual
22 // Description: The destructor is responsible for removing the file
23 // if it exists.
24 ////////////////////////////////////////////////////////////////////
27  _filename.unlink();
28 }
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
virtual ~TemporaryFile()
The destructor is responsible for removing the file if it exists.