diff OrthancFramework/Sources/SystemToolbox.cpp @ 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 c8754c4c1862
children 785a2713323e
line wrap: on
line diff
--- a/OrthancFramework/Sources/SystemToolbox.cpp	Tue Nov 03 20:05:55 2020 +0100
+++ b/OrthancFramework/Sources/SystemToolbox.cpp	Tue Nov 03 20:48:01 2020 +0100
@@ -233,6 +233,12 @@
   }
 
 
+  void Orthanc::SystemToolbox::ReadFile(std::string &content, const std::string &path)
+  {
+    ReadFile(content, path, true /* log */);
+  }
+
+
   bool SystemToolbox::ReadHeader(std::string& header,
                                  const std::string& path,
                                  size_t headerSize)
@@ -336,6 +342,12 @@
   }
 
 
+  void SystemToolbox::WriteFile(const void *content, size_t size, const std::string &path)
+  {
+    WriteFile(content, size, path, false /* don't automatically call fsync */);
+  }
+
+
   void SystemToolbox::WriteFile(const std::string& content,
                                 const std::string& path,
                                 bool callFsync)
@@ -345,6 +357,12 @@
   }
 
 
+  void SystemToolbox::WriteFile(const std::string &content, const std::string &path)
+  {
+    WriteFile(content, path, false /* don't automatically call fsync */);
+  }
+
+
   void SystemToolbox::RemoveFile(const std::string& path)
   {
     if (boost::filesystem::exists(path))