comparison 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
comparison
equal deleted inserted replaced
1668:de1413733c97 1669:a412ad57f0f9
64 throw OrthancException(ErrorCode_ParameterOutOfRange); 64 throw OrthancException(ErrorCode_ParameterOutOfRange);
65 } 65 }
66 } 66 }
67 67
68 68
69 ResourceType Convert(OrthancPluginResourceType type)
70 {
71 switch (type)
72 {
73 case OrthancPluginResourceType_Patient:
74 return ResourceType_Patient;
75
76 case OrthancPluginResourceType_Study:
77 return ResourceType_Study;
78
79 case OrthancPluginResourceType_Series:
80 return ResourceType_Series;
81
82 case OrthancPluginResourceType_Instance:
83 return ResourceType_Instance;
84
85 default:
86 throw OrthancException(ErrorCode_ParameterOutOfRange);
87 }
88 }
89
90
69 OrthancPluginChangeType Convert(ChangeType type) 91 OrthancPluginChangeType Convert(ChangeType type)
70 { 92 {
71 switch (type) 93 switch (type)
72 { 94 {
73 case ChangeType_CompletedSeries: 95 case ChangeType_CompletedSeries: