util::temp_file Class Reference

#include <tempfile.hh>

List of all members.

Public Member Functions

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

Detailed Description

Temporary file.

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.

Constructor & Destructor Documentation

util::temp_file::temp_file (  )  [inline]

Definition at line 122 of file tempfile.hh.

References util::posix_tmp_template().

Here is the call graph for this function:

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

Definition at line 138 of file tempfile.hh.

References path().

Here is the call graph for this function:

Member Function Documentation

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

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