X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=temp_file.hpp;fp=temp_file.hpp;h=9ea55f375848cfd1b9a2bae467eb7a1d5970c9ae;hp=1ead61afb9f3831ae3b7a12c7d29889fcfb19bc6;hb=3194c256cf967c11bbc267f05044fa7eb049100f;hpb=f5d9069647f70b7aab8e656f59cf42176c419461 diff --git a/temp_file.hpp b/temp_file.hpp index 1ead61a..9ea55f3 100644 --- a/temp_file.hpp +++ b/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