Mercurial > hg > orthanc
diff Plugins/Engine/PluginsEnumerations.cpp @ 1669:a412ad57f0f9 db-changes
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 01 Oct 2015 11:55:25 +0200 |
parents | 5360cdba70d8 |
children | 2f2e2ec17bc4 |
line wrap: on
line diff
--- a/Plugins/Engine/PluginsEnumerations.cpp Wed Sep 30 17:18:39 2015 +0200 +++ b/Plugins/Engine/PluginsEnumerations.cpp Thu Oct 01 11:55:25 2015 +0200 @@ -66,6 +66,28 @@ } + ResourceType Convert(OrthancPluginResourceType type) + { + switch (type) + { + case OrthancPluginResourceType_Patient: + return ResourceType_Patient; + + case OrthancPluginResourceType_Study: + return ResourceType_Study; + + case OrthancPluginResourceType_Series: + return ResourceType_Series; + + case OrthancPluginResourceType_Instance: + return ResourceType_Instance; + + default: + throw OrthancException(ErrorCode_ParameterOutOfRange); + } + } + + OrthancPluginChangeType Convert(ChangeType type) { switch (type)