util::temp_dir Class Reference

#include <tempfile.hh>

List of all members.

Public Member Functions

 temp_dir ()
 ~temp_dir ()
const std::string & path () const
 Return the temporary directory's full path.


Detailed Description

Temporary directory.

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.


Constructor & Destructor Documentation

util::temp_dir::temp_dir (  )  [inline]

Definition at line 87 of file tempfile.hh.

References util::posix_tmp_template().

Here is the call graph for this function:

util::temp_dir::~temp_dir (  )  [inline]

Definition at line 99 of file tempfile.hh.

References path().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:

Generated on Thu Jul 6 00:34:52 2017 for Moses by  doxygen 1.5.9