#include <streambuf_tmpnam.h>
Inheritance diagram for rpa::filgen_fd_to_FILE_base:
Public Member Functions | |
void | open (int filDes) |
For security reasons, only this process can access this file. | |
FILE * | operator() (void) const |
void | close (int filDes) |
Private Attributes | |
FILE * | _file |
void rpa::filgen_fd_to_FILE_base::close | ( | int | filDes | ) |
The file itself is not removed by this class. It is only closed. It is up to the base class to remove it.
void rpa::filgen_fd_to_FILE_base::open | ( | int | filDes | ) |
For security reasons, only this process can access this file.
The file must exist because it is already open. The file offset stay the same, and we assume it was already at the right place, i.e. the beginning.
FILE* rpa::filgen_fd_to_FILE_base::operator() | ( | void | ) | const [inline] |
Returns the stored FILE ptr, because temp files generators must have a 'operator() const' which always return the same value.
FILE* rpa::filgen_fd_to_FILE_base::_file [private] |
Reimplemented in rpa::filgen_fd_to_FILE< FdGenerator >.