comparison Core/Enumerations.cpp @ 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
368 throw OrthancException(ErrorCode_ParameterOutOfRange); 368 throw OrthancException(ErrorCode_ParameterOutOfRange);
369 } 369 }
370 } 370 }
371 371
372 372
373 const char* EnumerationToString(RequestOrigin origin)
374 {
375 switch (origin)
376 {
377 case RequestOrigin_DicomProtocol:
378 return "DicomProtocol";
379
380 case RequestOrigin_Http:
381 return "Http";
382
383 case RequestOrigin_Plugins:
384 return "Plugins";
385
386 case RequestOrigin_Lua:
387 return "Lua";
388
389 default:
390 throw OrthancException(ErrorCode_ParameterOutOfRange);
391 }
392 }
393
394
373 const char* EnumerationToString(LogLevel level) 395 const char* EnumerationToString(LogLevel level)
374 { 396 {
375 switch (level) 397 switch (level)
376 { 398 {
377 case LogLevel_Error: 399 case LogLevel_Error: