comparison Plugins/Samples/Common/DicomPath.cpp @ 2237:403d92d8df83

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Dec 2016 14:45:40 +0100
parents de32f3b4ff09
children a3a65de1840f
comparison
equal deleted inserted replaced
2236:55843d0139d3 2237:403d92d8df83
30 **/ 30 **/
31 31
32 32
33 #include "DicomPath.h" 33 #include "DicomPath.h"
34 34
35 #include "OrthancPluginCppWrapper.h" 35 #include "OrthancPluginException.h"
36 36
37 namespace OrthancPlugins 37 namespace OrthancPlugins
38 { 38 {
39 const DicomPath::Prefix& DicomPath::GetPrefixItem(size_t depth) const 39 const DicomPath::Prefix& DicomPath::GetPrefixItem(size_t depth) const
40 { 40 {
41 if (depth >= prefix_.size()) 41 if (depth >= prefix_.size())
42 { 42 {
43 ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_ParameterOutOfRange); 43 ORTHANC_PLUGINS_THROW_EXCEPTION(ParameterOutOfRange);
44 } 44 }
45 else 45 else
46 { 46 {
47 return prefix_[depth]; 47 return prefix_[depth];
48 } 48 }