comparison Core/TemporaryFile.h @ 3181:6fd38327e777

Fix issue #130 (Orthanc failed to start when /tmp partition was full)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 31 Jan 2019 15:33:27 +0100
parents 4e43e67f8ecf
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3180:07a2f637b76d 3181:6fd38327e777
51 std::string path_; 51 std::string path_;
52 52
53 public: 53 public:
54 TemporaryFile(); 54 TemporaryFile();
55 55
56 TemporaryFile(const char* extension); 56 TemporaryFile(const std::string& temporaryFolder,
57 const std::string& extension);
57 58
58 ~TemporaryFile(); 59 ~TemporaryFile();
59 60
60 const std::string& GetPath() const 61 const std::string& GetPath() const
61 { 62 {
63 } 64 }
64 65
65 void Write(const std::string& content); 66 void Write(const std::string& content);
66 67
67 void Read(std::string& content) const; 68 void Read(std::string& content) const;
69
70 void Touch();
68 }; 71 };
69 } 72 }