PURIFY
Next-generation radio interferometric imaging
Public Member Functions | List of all members
TmpPath Class Reference
+ Inheritance diagram for TmpPath:

Public Member Functions

 TmpPath ()
 
 ~TmpPath ()
 
boost::filesystem::path const & path () const
 

Detailed Description

Definition at line 50 of file casacore.cc.

Constructor & Destructor Documentation

◆ TmpPath()

TmpPath::TmpPath ( )
inline

Definition at line 52 of file casacore.cc.

53  : path_(boost::filesystem::unique_path(boost::filesystem::temp_directory_path() /
54  "%%%%-%%%%-%%%%-%%%%.ms")) {}

◆ ~TmpPath()

TmpPath::~TmpPath ( )
inline

Definition at line 55 of file casacore.cc.

55  {
56  if (boost::filesystem::exists(path())) boost::filesystem::remove_all(path());
57  }
boost::filesystem::path const & path() const
Definition: casacore.cc:58

References path().

Member Function Documentation

◆ path()

boost::filesystem::path const& TmpPath::path ( ) const
inline

Definition at line 58 of file casacore.cc.

58 { return path_; }

Referenced by TmpMS::TmpMS(), and ~TmpPath().


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