Mercurial > hg > orthanc
diff Plugins/Engine/PluginsEnumerations.cpp @ 3054:3638de45a08c db-changes
backward compatibility with filtering identifiers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 21 Dec 2018 12:45:24 +0100 |
parents | 37583cd183ed |
children | ce272138f15e |
line wrap: on
line diff
--- a/Plugins/Engine/PluginsEnumerations.cpp Thu Dec 20 17:59:16 2018 +0100 +++ b/Plugins/Engine/PluginsEnumerations.cpp Fri Dec 21 12:45:24 2018 +0100 @@ -266,20 +266,20 @@ } - OrthancPluginIdentifierConstraint Convert(IdentifierConstraintType constraint) + OrthancPluginIdentifierConstraint Convert(Compatibility::IdentifierConstraintType constraint) { switch (constraint) { - case IdentifierConstraintType_Equal: + case Compatibility::IdentifierConstraintType_Equal: return OrthancPluginIdentifierConstraint_Equal; - case IdentifierConstraintType_GreaterOrEqual: + case Compatibility::IdentifierConstraintType_GreaterOrEqual: return OrthancPluginIdentifierConstraint_GreaterOrEqual; - case IdentifierConstraintType_SmallerOrEqual: + case Compatibility::IdentifierConstraintType_SmallerOrEqual: return OrthancPluginIdentifierConstraint_SmallerOrEqual; - case IdentifierConstraintType_Wildcard: + case Compatibility::IdentifierConstraintType_Wildcard: return OrthancPluginIdentifierConstraint_Wildcard; default: @@ -288,21 +288,21 @@ } - IdentifierConstraintType Convert(OrthancPluginIdentifierConstraint constraint) + Compatibility::IdentifierConstraintType Convert(OrthancPluginIdentifierConstraint constraint) { switch (constraint) { case OrthancPluginIdentifierConstraint_Equal: - return IdentifierConstraintType_Equal; + return Compatibility::IdentifierConstraintType_Equal; case OrthancPluginIdentifierConstraint_GreaterOrEqual: - return IdentifierConstraintType_GreaterOrEqual; + return Compatibility::IdentifierConstraintType_GreaterOrEqual; case OrthancPluginIdentifierConstraint_SmallerOrEqual: - return IdentifierConstraintType_SmallerOrEqual; + return Compatibility::IdentifierConstraintType_SmallerOrEqual; case OrthancPluginIdentifierConstraint_Wildcard: - return IdentifierConstraintType_Wildcard; + return Compatibility::IdentifierConstraintType_Wildcard; default: throw OrthancException(ErrorCode_ParameterOutOfRange);