1 #ifndef MSP_FS_REDIRECTEDPATH_H_
2 #define MSP_FS_REDIRECTEDPATH_H_
10 Provides a redirected path for the lifetime of the object. When RedirectedPath
11 goes out of scope, it is renamed to the original path. If destruction happens
12 due to an exception, it is unlinked instead. The primary use for this is to
13 atomically overwrite a file with a new version.
15 class RedirectedPath: public Path
21 explicit RedirectedPath(const Path &, const char * = ".tmp");
22 RedirectedPath(const Path &, const std::string &);
23 RedirectedPath(const Path &, const Path &);