Mercurial > hg > orthanc
comparison Plugins/Samples/Common/DicomPath.cpp @ 3381:a6c590cb8181
OrthancPlugins::DicomPath::SetPrefixIndex()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 May 2019 07:33:10 +0200 |
parents | 4e43e67f8ecf |
children | 46a8050583a1 |
comparison
equal
deleted
inserted
replaced
3380:0528a6c36f3d | 3381:a6c590cb8181 |
---|---|
48 return prefix_[depth]; | 48 return prefix_[depth]; |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 | 52 |
53 DicomPath::Prefix& DicomPath::GetPrefixItem(size_t depth) | |
54 { | |
55 if (depth >= prefix_.size()) | |
56 { | |
57 ORTHANC_PLUGINS_THROW_EXCEPTION(ParameterOutOfRange); | |
58 } | |
59 else | |
60 { | |
61 return prefix_[depth]; | |
62 } | |
63 } | |
64 | |
65 | |
53 DicomPath::DicomPath(const DicomTag& sequence, | 66 DicomPath::DicomPath(const DicomTag& sequence, |
54 size_t index, | 67 size_t index, |
55 const DicomTag& tag) : | 68 const DicomTag& tag) : |
56 finalTag_(tag) | 69 finalTag_(tag) |
57 { | 70 { |