26 lines
464 B
C++
26 lines
464 B
C++
#pragma once
|
|
#ifndef MESSMER_TEMPFILE_TEMPFILE_H_
|
|
#define MESSMER_TEMPFILE_TEMPFILE_H_
|
|
|
|
#include <boost/filesystem.hpp>
|
|
#include "../macros.h"
|
|
|
|
namespace cpputils {
|
|
|
|
class TempFile {
|
|
public:
|
|
TempFile(const boost::filesystem::path &path, bool create = true);
|
|
TempFile(bool create = true);
|
|
virtual ~TempFile();
|
|
const boost::filesystem::path &path() const;
|
|
|
|
private:
|
|
const boost::filesystem::path _path;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(TempFile);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|