#include <streambuf_tmpnam.h>
Inheritance diagram for rpa::filgen_name_to_fd_base:
Public Member Functions | |
void | open (const char *filNam) |
For security reasons, only this process can access this file. | |
int | operator() (void) const |
void | close (const char *filNam) |
Private Attributes | |
int | _fd |
void rpa::filgen_name_to_fd_base::close | ( | const char * | filNam | ) |
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_name_to_fd_base::open | ( | const char * | filNam | ) |
For security reasons, only this process can access this file.
If the file already exists, we do not truncate it, but try to reuse the allocated disk space : It may be unfragmented, which is good.
If O_CREAT and O_EXCL are set, fails if the file exists
int rpa::filgen_name_to_fd_base::operator() | ( | void | ) | const [inline] |
This method is used by the constructor of a stream file buffer. It must be 'const', and always return the same value.
int rpa::filgen_name_to_fd_base::_fd [private] |