X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=temp_file.hpp;h=9ea55f375848cfd1b9a2bae467eb7a1d5970c9ae;hp=e1d942efa0ecbd06b308f760af3394bc9c8abb94;hb=e1f43b883bb767bc7f50b7c96b1579c0dd5b9290;hpb=392b6372714c8c2b2bf2389b86fb8f47ef70c2ef diff --git a/temp_file.hpp b/temp_file.hpp index e1d942e..9ea55f3 100644 --- a/temp_file.hpp +++ b/temp_file.hpp @@ -1,4 +1,4 @@ -// Copyright 2005-6 Ben Hutchings . +// Copyright 2005-6 Ben Hutchings . // See the file "COPYING" for licence details. #ifndef INC_TEMP_FILE_HPP @@ -22,8 +22,17 @@ public: private: int fd_; std::string name_; +}; - static bool keep_; +class temp_dir +{ +public: + explicit temp_dir(const std::string & base_name); + ~temp_dir(); + const std::string & get_name() const { return name_; } + +private: + std::string name_; }; #endif // !INC_TEMP_FILE_HPP