libcryfs/tempfile/TempDir.h

26 lines
404 B
C
Raw Normal View History

2015-04-25 02:40:02 +02:00
#pragma once
2015-10-15 12:58:16 +02:00
#ifndef MESSMER_CPPUTILS_TEMPFILE_TEMPDIR_H_
#define MESSMER_CPPUTILS_TEMPFILE_TEMPDIR_H_
2015-04-25 02:40:02 +02:00
#include <boost/filesystem.hpp>
#include "../macros.h"
namespace cpputils {
2015-10-29 15:51:16 +01:00
class TempDir final {
2015-04-25 02:40:02 +02:00
public:
TempDir();
2015-10-29 15:51:16 +01:00
~TempDir();
2015-04-25 02:40:02 +02:00
const boost::filesystem::path &path() const;
2015-10-29 15:51:16 +01:00
void remove();
2015-04-25 02:40:02 +02:00
private:
const boost::filesystem::path _path;
DISALLOW_COPY_AND_ASSIGN(TempDir);
};
}
#endif