diff OrthancServer/Sources/ServerEnumerations.h @ 4472:28a4baadde17

rename TransferSyntax enum as TransferSyntaxGroup
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 26 Jan 2021 10:18:50 +0100
parents 5ffa4e14e4bd
children 68f52897c119
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerEnumerations.h	Tue Jan 26 09:15:05 2021 +0100
+++ b/OrthancServer/Sources/ServerEnumerations.h	Tue Jan 26 10:18:50 2021 +0100
@@ -96,16 +96,16 @@
   };
 
   // This enum was previously part of Orthanc framework (until 1.8.2)
-  enum TransferSyntax
+  enum TransferSyntaxGroup
   {
-    TransferSyntax_Deflated,
-    TransferSyntax_Jpeg,
-    TransferSyntax_Jpeg2000,
-    TransferSyntax_JpegLossless,
-    TransferSyntax_Jpip,
-    TransferSyntax_Mpeg2,
-    TransferSyntax_Mpeg4,  // New in Orthanc 1.6.0
-    TransferSyntax_Rle
+    TransferSyntaxGroup_Deflated,
+    TransferSyntaxGroup_Jpeg,
+    TransferSyntaxGroup_Jpeg2000,
+    TransferSyntaxGroup_JpegLossless,
+    TransferSyntaxGroup_Jpip,
+    TransferSyntaxGroup_Mpeg2,
+    TransferSyntaxGroup_Mpeg4,  // New in Orthanc 1.6.0
+    TransferSyntaxGroup_Rle
   };
 
 
@@ -233,5 +233,9 @@
 
   bool IsUserMetadata(MetadataType type);
 
-  const char* EnumerationToString(TransferSyntax syntax);
+  const char* EnumerationToString(TransferSyntaxGroup syntax);
+
+  void GetTransferSyntaxGroup(std::set<DicomTransferSyntax>& target,
+                              TransferSyntaxGroup source,
+                              bool clearTarget);
 }