Open temporary file.
More...
#include <spot/misc/tmpfile.hh>
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 not call the POSIX close() function directly.
◆ cleanpos_t
Iterator position in the cleanup list.
◆ open_temporary_file()
| SPOT_LOCAL spot::open_temporary_file::open_temporary_file |
( |
char * |
name, |
|
|
cleanpos_t |
cp, |
|
|
int |
fd |
|
) |
| |
Build an open temporary file wrapper.
◆ ~open_temporary_file()
| virtual spot::open_temporary_file::~open_temporary_file |
( |
| ) |
|
|
overridevirtual |
Destroy the temporary file and close the descriptor.
◆ close()
| void spot::open_temporary_file::close |
( |
| ) |
|
Close the file descriptor.
◆ fd()
| int spot::open_temporary_file::fd |
( |
| ) |
const |
|
inline |
Return the file descriptor.
◆ name()
| const char* spot::temporary_file::name |
( |
| ) |
const |
|
inlineinherited |
◆ print()
| virtual void spot::temporary_file::print |
( |
std::ostream & |
os, |
|
|
const char * |
|
|
) |
| const |
|
inlinefinaloverridevirtualinherited |
◆ cleanpos_
◆ fd_
| int spot::open_temporary_file::fd_ |
|
protected |
◆ name_
| char* spot::temporary_file::name_ |
|
protectedinherited |
The documentation for this class was generated from the following file: