comparison OrthancFramework/Sources/Enumerations.cpp @ 4469:5ffa4e14e4bd

move old enum TransferSyntax from OrthancFramework to OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 25 Jan 2021 18:12:59 +0100
parents f77ee6e6cf47
children 350a22c094f2
comparison
equal deleted inserted replaced
4468:9c070a34de18 4469:5ffa4e14e4bd
847 break; 847 break;
848 848
849 case DicomRequestType_NEventReport: 849 case DicomRequestType_NEventReport:
850 return "N-EVENT-REPORT"; 850 return "N-EVENT-REPORT";
851 break; 851 break;
852
853 default:
854 throw OrthancException(ErrorCode_ParameterOutOfRange);
855 }
856 }
857
858
859 const char* EnumerationToString(TransferSyntax syntax)
860 {
861 switch (syntax)
862 {
863 case TransferSyntax_Deflated:
864 return "Deflated";
865
866 case TransferSyntax_Jpeg:
867 return "JPEG";
868
869 case TransferSyntax_Jpeg2000:
870 return "JPEG2000";
871
872 case TransferSyntax_JpegLossless:
873 return "JPEG Lossless";
874
875 case TransferSyntax_Jpip:
876 return "JPIP";
877
878 case TransferSyntax_Mpeg2:
879 return "MPEG2";
880
881 case TransferSyntax_Mpeg4:
882 return "MPEG4";
883
884 case TransferSyntax_Rle:
885 return "RLE";
886 852
887 default: 853 default:
888 throw OrthancException(ErrorCode_ParameterOutOfRange); 854 throw OrthancException(ErrorCode_ParameterOutOfRange);
889 } 855 }
890 } 856 }