Mercurial > hg > orthanc
comparison OrthancFramework/Sources/SystemToolbox.h @ 4279:ab4d015af660
moving inline methods to source files for ABI compatibility
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 20:48:01 +0100 |
parents | b289a1234822 |
children | 52166629239f |
comparison
equal
deleted
inserted
replaced
4278:9279de56a405 | 4279:ab4d015af660 |
---|---|
53 static void ReadFile(std::string& content, | 53 static void ReadFile(std::string& content, |
54 const std::string& path, | 54 const std::string& path, |
55 bool log); | 55 bool log); |
56 | 56 |
57 static void ReadFile(std::string& content, | 57 static void ReadFile(std::string& content, |
58 const std::string& path) | 58 const std::string& path); |
59 { | |
60 ReadFile(content, path, true /* log */); | |
61 } | |
62 | 59 |
63 static bool ReadHeader(std::string& header, | 60 static bool ReadHeader(std::string& header, |
64 const std::string& path, | 61 const std::string& path, |
65 size_t headerSize); | 62 size_t headerSize); |
66 | 63 |
69 const std::string& path, | 66 const std::string& path, |
70 bool callFsync); | 67 bool callFsync); |
71 | 68 |
72 static void WriteFile(const void* content, | 69 static void WriteFile(const void* content, |
73 size_t size, | 70 size_t size, |
74 const std::string& path) | 71 const std::string& path); |
75 { | |
76 WriteFile(content, size, path, false /* don't automatically call fsync */); | |
77 } | |
78 | 72 |
79 static void WriteFile(const std::string& content, | 73 static void WriteFile(const std::string& content, |
80 const std::string& path, | 74 const std::string& path, |
81 bool callFsync); | 75 bool callFsync); |
82 | 76 |
83 static void WriteFile(const std::string& content, | 77 static void WriteFile(const std::string& content, |
84 const std::string& path) | 78 const std::string& path); |
85 { | |
86 WriteFile(content, path, false /* don't automatically call fsync */); | |
87 } | |
88 | 79 |
89 static void RemoveFile(const std::string& path); | 80 static void RemoveFile(const std::string& path); |
90 | 81 |
91 static uint64_t GetFileSize(const std::string& path); | 82 static uint64_t GetFileSize(const std::string& path); |
92 | 83 |