libcryfs/tempfile/TempFile.h

26 lines
482 B
C
Raw Normal View History

2015-04-25 02:40:02 +02:00
#pragma once
#ifndef MESSMER_TEMPFILE_TEMPFILE_H_
#define MESSMER_TEMPFILE_TEMPFILE_H_
#include <boost/filesystem.hpp>
#include "../macros.h"
namespace cpputils {
class TempFile {
public:
explicit TempFile(const boost::filesystem::path &path, bool create = true);
explicit TempFile(bool create = true);
2015-04-25 02:40:02 +02:00
virtual ~TempFile();
const boost::filesystem::path &path() const;
private:
const boost::filesystem::path _path;
DISALLOW_COPY_AND_ASSIGN(TempFile);
};
}
#endif