7 #ifndef ALPS_UTILITY_TEMPORARY_FILENAME_HPP     8 #define ALPS_UTILITY_TEMPORARY_FILENAME_HPP    10 #include <alps/config.hpp>    12 #include <boost/noncopyable.hpp>    38             const std::string& 
name()
 const { 
return name_; }
    54 #endif // ALPS_UTILITY_TEMPORARY_FILENAME_HPP ~unique_file()
Closes and optionally deletes the file. 
const std::string & name() const 
Returns temporary file name. 
Keep the file when destroying the object. 
unique_file(const std::string &prefix, action_type action=KEEP_AFTER)
Generates a random file name with a given prefix. 
Remove the file when destroying the object. 
Resource manager: manages a file with unique name. 
Remove the file after constructing the object only. 
std::string temporary_filename(const std::string &prefix)
Convenience function: creates unique named file, returns its name. 
Remove the file after constructing the object, remove when destructing too.