CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
raii_temp_dir.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_UTIL_RAII_TEMP_DIR_H_
6 #define CVMFS_UTIL_RAII_TEMP_DIR_H_
7 
8 #include <string>
9 
10 #include "util/export.h"
11 
22  public:
23  static RaiiTempDir* Create(const std::string& prefix);
24 
25  std::string dir() const { return dir_; }
26 
27  ~RaiiTempDir();
28 
29  private:
30  explicit RaiiTempDir(const std::string& prefix);
31 
32  std::string dir_;
33 };
34 
35 #endif // CVMFS_UTIL_RAII_TEMP_DIR_H_
static Publisher * Create(const SettingsPublisher &settings)
#define CVMFS_EXPORT
Definition: export.h:11
std::string dir_
Definition: raii_temp_dir.h:32
std::string dir() const
Definition: raii_temp_dir.h:25