| 17 | using namespace icinga; |
| 18 | |
| 19 | void AtomicFile::Write(String path, int mode, const String& content) |
| 20 | { |
| 21 | AtomicFile af (path, mode); |
| 22 | af << content; |
| 23 | af.Commit(); |
| 24 | } |
| 25 | |
| 26 | AtomicFile::AtomicFile(String path, int mode) : m_Path(std::move(path)) |
| 27 | { |