Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/ParsedDicomFile.cpp @ 4588:94147ce2f097 db-changes
fix build on os x
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Mar 2021 17:15:01 +0100 |
parents | 11bfea08341a |
children | 7182f5732480 |
comparison
equal
deleted
inserted
replaced
4587:888868a5dc4e | 4588:94147ce2f097 |
---|---|
418 } | 418 } |
419 } | 419 } |
420 #endif | 420 #endif |
421 | 421 |
422 | 422 |
423 static inline uint16_t GetCharValue(char c) | |
424 { | |
425 if (c >= '0' && c <= '9') | |
426 return c - '0'; | |
427 else if (c >= 'a' && c <= 'f') | |
428 return c - 'a' + 10; | |
429 else if (c >= 'A' && c <= 'F') | |
430 return c - 'A' + 10; | |
431 else | |
432 return 0; | |
433 } | |
434 | |
435 | |
436 static inline uint16_t GetTagValue(const char* c) | |
437 { | |
438 return ((GetCharValue(c[0]) << 12) + | |
439 (GetCharValue(c[1]) << 8) + | |
440 (GetCharValue(c[2]) << 4) + | |
441 GetCharValue(c[3])); | |
442 } | |
443 | |
444 | |
445 #if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1 | 423 #if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1 |
446 void ParsedDicomFile::SendPathValue(RestApiOutput& output, | 424 void ParsedDicomFile::SendPathValue(RestApiOutput& output, |
447 const UriComponents& uri) const | 425 const UriComponents& uri) const |
448 { | 426 { |
449 DcmItem* dicom = GetDcmtkObjectConst().getDataset(); | 427 DcmItem* dicom = GetDcmtkObjectConst().getDataset(); |