1 // Copyright 2005-6 Ben Hutchings <ben@decadent.org.uk>.
2 // See the file "COPYING" for licence details.
4 #ifndef INC_TEMP_FILE_HPP
5 #define INC_TEMP_FILE_HPP
12 explicit temp_file(const std::string & base_name);
17 int get_fd() const { return fd_; }
18 const std::string & get_name() const { return name_; }
20 static void keep_all(bool keep);
30 explicit temp_dir(const std::string & base_name);
32 const std::string & get_name() const { return name_; }
38 #endif // !INC_TEMP_FILE_HPP