comparison OrthancServer/ServerEnumerations.cpp @ 2908:9d277f8ad698

new enumeration: MimeType
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 16:16:07 +0100
parents ae20fccdd867
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2907:0204af4ece6a 2908:9d277f8ad698
174 } 174 }
175 175
176 switch (type) 176 switch (type)
177 { 177 {
178 case FileContentType_Dicom: 178 case FileContentType_Dicom:
179 return MIME_DICOM; 179 return EnumerationToString(MimeType_Dicom);
180 180
181 case FileContentType_DicomAsJson: 181 case FileContentType_DicomAsJson:
182 return MIME_JSON; 182 return MIME_JSON_UTF8;
183 183
184 default: 184 default:
185 return MIME_BINARY; 185 return EnumerationToString(MimeType_Binary);
186 } 186 }
187 } 187 }
188 188
189 FileContentType StringToContentType(const std::string& str) 189 FileContentType StringToContentType(const std::string& str)
190 { 190 {