#include <tempfile.hh>
Public Member Functions | |
temp_dir () | |
~temp_dir () | |
const std::string & | path () const |
Return the temporary directory's full path. |
Automatically creates, and on destruction deletes, a temporary directory. The actual directory in the filesystem will only exist while the temp_dir object exists.
If the directory no longer exists by the time the temp_dir is destroyed, cleanup is skipped.
Definition at line 84 of file tempfile.hh.
util::temp_dir::temp_dir | ( | ) | [inline] |
Definition at line 87 of file tempfile.hh.
References util::posix_tmp_template().
util::temp_dir::~temp_dir | ( | ) | [inline] |
Definition at line 99 of file tempfile.hh.
References path().
const std::string& util::temp_dir::path | ( | ) | const [inline] |
Return the temporary directory's full path.
Definition at line 105 of file tempfile.hh.
Referenced by Moses::PhraseDictionaryTransliteration::GetTargetPhraseCollection(), and ~temp_dir().