spot 2.13.1
|
Open temporary file. More...
#include <spot/misc/tmpfile.hh>
Public Types | |
typedef std::list< temporary_file * >::iterator | cleanpos_t |
Public Member Functions | |
SPOT_LOCAL | open_temporary_file (char *name, cleanpos_t cp, int fd) |
void | close () |
int | fd () const |
const char * | name () const |
virtual void | print (std::ostream &os, const char *) const final override |
Protected Attributes | |
int | fd_ |
char * | name_ |
cleanpos_t | cleanpos_ |
Open temporary file.
This is a specialization of temporary_file that also holds an open file descriptor, as created by create_open_tmpfile().
Use the open_temporary_file::close() method if you want to close that descriptor; do no call the POSIX close() function directly.
|
inlinefinaloverridevirtualinherited |
Implements spot::printable.