#include <tempfile.hh>
Public Member Functions | |
temp_file () | |
~temp_file () | |
const std::string & | path () const |
Return the temporary file's full path. |
Automatically creates, and on destruction deletes, a temporary file.
If the file no longer exists by the time the temp_file is destroyed, cleanup is skipped.
Definition at line 119 of file tempfile.hh.
util::temp_file::temp_file | ( | ) | [inline] |
Definition at line 122 of file tempfile.hh.
References util::posix_tmp_template().
util::temp_file::~temp_file | ( | ) | [inline] |
Definition at line 138 of file tempfile.hh.
References path().
const std::string& util::temp_file::path | ( | ) | const [inline] |
Return the temporary file's full path.
Definition at line 144 of file tempfile.hh.
Referenced by Moses::PhraseDictionaryTransliteration::GetTargetPhraseCollection(), and ~temp_file().