comparison Core/Enumerations.h @ 1571:3232f1c995a5

provide the origin of the requests to HTTP handlers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 11:04:19 +0200
parents 4b23310eb7e8
children 904096e7367e
comparison
equal deleted inserted replaced
1570:2bd2c280f9b5 1571:3232f1c995a5
298 DicomModule_Series, 298 DicomModule_Series,
299 DicomModule_Instance, 299 DicomModule_Instance,
300 DicomModule_Image 300 DicomModule_Image
301 }; 301 };
302 302
303 enum RequestOrigin
304 {
305 RequestOrigin_DicomProtocol,
306 RequestOrigin_Http,
307 RequestOrigin_Plugins,
308 RequestOrigin_Lua
309 };
310
303 311
304 /** 312 /**
305 * WARNING: Do not change the explicit values in the enumerations 313 * WARNING: Do not change the explicit values in the enumerations
306 * below this point. This would result in incompatible databases 314 * below this point. This would result in incompatible databases
307 * between versions of Orthanc! 315 * between versions of Orthanc!
362 370
363 const char* EnumerationToString(PhotometricInterpretation photometric); 371 const char* EnumerationToString(PhotometricInterpretation photometric);
364 372
365 const char* EnumerationToString(LogLevel level); 373 const char* EnumerationToString(LogLevel level);
366 374
375 const char* EnumerationToString(RequestOrigin origin);
376
367 Encoding StringToEncoding(const char* encoding); 377 Encoding StringToEncoding(const char* encoding);
368 378
369 ResourceType StringToResourceType(const char* type); 379 ResourceType StringToResourceType(const char* type);
370 380
371 ImageFormat StringToImageFormat(const char* format); 381 ImageFormat StringToImageFormat(const char* format);