diff Plugins/Engine/PluginsEnumerations.cpp @ 1760:51db4a25a741 db-changes

LookupIdentifier is plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Oct 2015 11:09:00 +0100
parents 5e99a70b0635
children f4286d99ee0a
line wrap: on
line diff
--- a/Plugins/Engine/PluginsEnumerations.cpp	Wed Oct 28 12:59:18 2015 +0100
+++ b/Plugins/Engine/PluginsEnumerations.cpp	Thu Oct 29 11:09:00 2015 +0100
@@ -229,6 +229,28 @@
     }
 
 
+    OrthancPluginIdentifierConstraint Convert(IdentifierConstraintType constraint)
+    {
+      switch (constraint)
+      {
+        case IdentifierConstraintType_Equal:
+          return OrthancPluginIdentifierConstraint_Equal;
+
+        case IdentifierConstraintType_GreaterOrEqual:
+          return OrthancPluginIdentifierConstraint_GreaterOrEqual;
+
+        case IdentifierConstraintType_SmallerOrEqual:
+          return OrthancPluginIdentifierConstraint_SmallerOrEqual;
+
+        case IdentifierConstraintType_Wildcard:
+          return OrthancPluginIdentifierConstraint_Wildcard;
+
+        default:
+          throw OrthancException(ErrorCode_ParameterOutOfRange);
+      }
+    }
+
+
 #if !defined(ORTHANC_ENABLE_DCMTK) || ORTHANC_ENABLE_DCMTK != 0
     DcmEVR Convert(OrthancPluginValueRepresentation vr)
     {