#include <TmpPath.h>
Inheritance diagram for TmpFile:
Public Member Functions | |
TmpFile (const Pathname &inParentDir_r=defaultLocation(), const std::string &prefix_r=defaultPrefix()) | |
Static Public Member Functions | |
static const std::string & | defaultPrefix () |
The temporary file is per default created in '/var/tmp' and named ' TmpFile.XXXXXX', with XXXXXX replaced by a string which makes the name unique. Different location and file prefix may be passed to the ctor. TmpFile is created with mode 0600.
The directory where the temporary file is to be created must exist. TmpFile provides the Pathname of the temporary file, or an empty path in case of any error.
|
Ctor. Takes a Pathname. |
|
|