spot 2.13
|
Temporary file name. More...
#include <spot/misc/tmpfile.hh>
Public Types | |
typedef std::list< temporary_file * >::iterator | cleanpos_t |
Public Member Functions | |
SPOT_LOCAL | temporary_file (char *name, cleanpos_t cp) |
temporary_file (const temporary_file &other)=delete | |
const char * | name () const |
virtual void | print (std::ostream &os, const char *) const final override |
Protected Attributes | |
char * | name_ |
cleanpos_t | cleanpos_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const temporary_file *f) |
Temporary file name.
This class serves a dual purpose.
Note that there are two ways to destroy temporary_file instances. Either directly with delete, or indirectly by calling cleanup_tmpfiles(). You should never delete an instance that has been created before the last call to cleanup_tmpfiles(), because that instance has already been deleted.
|
inlinefinaloverridevirtual |
Implements spot::printable.