comparison 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
comparison
equal deleted inserted replaced
1759:e268412adcf1 1760:51db4a25a741
227 throw OrthancException(ErrorCode_ParameterOutOfRange); 227 throw OrthancException(ErrorCode_ParameterOutOfRange);
228 } 228 }
229 } 229 }
230 230
231 231
232 OrthancPluginIdentifierConstraint Convert(IdentifierConstraintType constraint)
233 {
234 switch (constraint)
235 {
236 case IdentifierConstraintType_Equal:
237 return OrthancPluginIdentifierConstraint_Equal;
238
239 case IdentifierConstraintType_GreaterOrEqual:
240 return OrthancPluginIdentifierConstraint_GreaterOrEqual;
241
242 case IdentifierConstraintType_SmallerOrEqual:
243 return OrthancPluginIdentifierConstraint_SmallerOrEqual;
244
245 case IdentifierConstraintType_Wildcard:
246 return OrthancPluginIdentifierConstraint_Wildcard;
247
248 default:
249 throw OrthancException(ErrorCode_ParameterOutOfRange);
250 }
251 }
252
253
232 #if !defined(ORTHANC_ENABLE_DCMTK) || ORTHANC_ENABLE_DCMTK != 0 254 #if !defined(ORTHANC_ENABLE_DCMTK) || ORTHANC_ENABLE_DCMTK != 0
233 DcmEVR Convert(OrthancPluginValueRepresentation vr) 255 DcmEVR Convert(OrthancPluginValueRepresentation vr)
234 { 256 {
235 switch (vr) 257 switch (vr)
236 { 258 {