diff Core/DicomParsing/ParsedDicomFile.cpp @ 2512:4dcafa8d6633

SystemToolbox::GenerateUuid moved to Toolbox::GenerateUuid
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Mar 2018 15:20:50 +0200
parents 83b8b6743531
children 6db878376018
line wrap: on
line diff
--- a/Core/DicomParsing/ParsedDicomFile.cpp	Wed Mar 28 14:18:02 2018 +0200
+++ b/Core/DicomParsing/ParsedDicomFile.cpp	Wed Mar 28 15:20:50 2018 +0200
@@ -87,7 +87,10 @@
 #include "../Logging.h"
 #include "../OrthancException.h"
 #include "../Toolbox.h"
-#include "../SystemToolbox.h"
+
+#if ORTHANC_SANDBOXED == 0
+#  include "../SystemToolbox.h"
+#endif
 
 #if ORTHANC_ENABLE_JPEG == 1
 #  include "../Images/JpegReader.h"
@@ -885,6 +888,7 @@
   }
 
 
+#if ORTHANC_SANDBOXED == 0
   void ParsedDicomFile::SaveToFile(const std::string& path)
   {
     // TODO Avoid using a temporary memory buffer, write directly on disk
@@ -892,6 +896,7 @@
     SaveToMemoryBuffer(content);
     SystemToolbox::WriteFile(content, path);
   }
+#endif
 
 
   ParsedDicomFile::ParsedDicomFile(bool createIdentifiers) : pimpl_(new PImpl)