Mercurial > hg > orthanc
diff OrthancFramework/Sources/Enumerations.cpp @ 5426:c65e036d649b
StorageCache is now storing transcoded instances + added ?transcode=... option to the /file route.
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 16 Nov 2023 16:09:04 +0100 |
parents | 3206537cbb56 |
children | 7a20ee948676 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp Wed Nov 15 08:58:45 2023 +0100 +++ b/OrthancFramework/Sources/Enumerations.cpp Thu Nov 16 16:09:04 2023 +0100 @@ -2468,6 +2468,21 @@ throw OrthancException(ErrorCode_InternalError); } } + + DicomTransferSyntax GetTransferSyntax(const std::string& value) + { + DicomTransferSyntax syntax; + if (LookupTransferSyntax(syntax, value)) + { + return syntax; + } + else + { + throw OrthancException(ErrorCode_ParameterOutOfRange, + "Unknown transfer syntax: " + value); + } + } + }