diff Core/FileStorage/StorageAccessor.h @ 2908:9d277f8ad698

new enumeration: MimeType
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 16:16:07 +0100
parents 878b59270859
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Core/FileStorage/StorageAccessor.h	Tue Oct 30 13:53:29 2018 +0100
+++ b/Core/FileStorage/StorageAccessor.h	Tue Oct 30 16:16:07 2018 +0100
@@ -110,10 +110,24 @@
 #if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1
     void AnswerFile(HttpOutput& output,
                     const FileInfo& info,
+                    MimeType mime)
+    {
+      AnswerFile(output, info, EnumerationToString(mime));
+    }
+
+    void AnswerFile(HttpOutput& output,
+                    const FileInfo& info,
                     const std::string& mime);
 
     void AnswerFile(RestApiOutput& output,
                     const FileInfo& info,
+                    MimeType mime)
+    {
+      AnswerFile(output, info, EnumerationToString(mime));
+    }
+
+    void AnswerFile(RestApiOutput& output,
+                    const FileInfo& info,
                     const std::string& mime);
 #endif
   };