comparison Core/DicomFormat/DicomValue.h @ 2905:ae20fccdd867

refactoring mime types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 11:55:23 +0100
parents da12ba232119
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2904:0dd54ee073db 2905:ae20fccdd867
31 **/ 31 **/
32 32
33 33
34 #pragma once 34 #pragma once
35 35
36 #include "../Enumerations.h"
37
36 #include <stdint.h> 38 #include <stdint.h>
37 #include <string>
38 #include <boost/noncopyable.hpp> 39 #include <boost/noncopyable.hpp>
39 #include <json/value.h> 40 #include <json/value.h>
40 41
41 #if !defined(ORTHANC_ENABLE_BASE64) 42 #if !defined(ORTHANC_ENABLE_BASE64)
42 # error The macro ORTHANC_ENABLE_BASE64 must be defined 43 # error The macro ORTHANC_ENABLE_BASE64 must be defined
90 void FormatDataUriScheme(std::string& target, 91 void FormatDataUriScheme(std::string& target,
91 const std::string& mime) const; 92 const std::string& mime) const;
92 93
93 void FormatDataUriScheme(std::string& target) const 94 void FormatDataUriScheme(std::string& target) const
94 { 95 {
95 FormatDataUriScheme(target, "application/octet-stream"); 96 FormatDataUriScheme(target, MIME_BINARY);
96 } 97 }
97 #endif 98 #endif
98 99
99 bool CopyToString(std::string& result, 100 bool CopyToString(std::string& result,
100 bool allowBinary) const; 101 bool allowBinary) const;