Mercurial > hg > orthanc
diff Plugins/Samples/Common/DicomPath.h @ 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 |
line wrap: on
line diff
--- a/Plugins/Samples/Common/DicomPath.h Thu May 23 12:06:26 2019 +0200 +++ b/Plugins/Samples/Common/DicomPath.h Tue May 28 07:33:10 2019 +0200 @@ -50,6 +50,8 @@ const Prefix& GetPrefixItem(size_t depth) const; + Prefix& GetPrefixItem(size_t depth); + public: DicomPath(const DicomTag& finalTag) : finalTag_(finalTag) @@ -94,6 +96,12 @@ { return GetPrefixItem(depth).second; } + + void SetPrefixIndex(size_t depth, + size_t value) + { + GetPrefixItem(depth).second = value; + } const DicomTag& GetFinalTag() const {