Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomFormat/DicomPath.h @ 4690:13efc0967cea
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jun 2021 11:21:22 +0200 |
parents | ead3b81f4541 |
children | e17fdc43ef6c |
comparison
equal
deleted
inserted
replaced
4689:ead3b81f4541 | 4690:13efc0967cea |
---|---|
76 static DicomTag ParseTag(const std::string& token); | 76 static DicomTag ParseTag(const std::string& token); |
77 | 77 |
78 const PrefixItem& GetLevel(size_t i) const; | 78 const PrefixItem& GetLevel(size_t i) const; |
79 | 79 |
80 public: | 80 public: |
81 explicit DicomPath(const Orthanc::DicomTag& tag) : | 81 explicit DicomPath(const Orthanc::DicomTag& tag); |
82 finalTag_(tag) | |
83 { | |
84 } | |
85 | 82 |
86 DicomPath(const Orthanc::DicomTag& sequence, | 83 DicomPath(const Orthanc::DicomTag& sequence, |
87 size_t index, | 84 size_t index, |
88 const Orthanc::DicomTag& tag); | 85 const Orthanc::DicomTag& tag); |
89 | 86 |
100 const Orthanc::DicomTag& sequence3, | 97 const Orthanc::DicomTag& sequence3, |
101 size_t index3, | 98 size_t index3, |
102 const Orthanc::DicomTag& tag); | 99 const Orthanc::DicomTag& tag); |
103 | 100 |
104 DicomPath(const std::vector<Orthanc::DicomTag>& parentTags, | 101 DicomPath(const std::vector<Orthanc::DicomTag>& parentTags, |
105 const std::vector<size_t> parentIndexes, | 102 const std::vector<size_t>& parentIndexes, |
106 const Orthanc::DicomTag& finalTag); | 103 const Orthanc::DicomTag& finalTag); |
107 | 104 |
108 void AddIndexedTagToPrefix(const Orthanc::DicomTag& tag, | 105 void AddIndexedTagToPrefix(const Orthanc::DicomTag& tag, |
109 size_t index); | 106 size_t index); |
110 | 107 |
111 void AddUniversalTagToPrefix(const Orthanc::DicomTag& tag); | 108 void AddUniversalTagToPrefix(const Orthanc::DicomTag& tag); |
112 | 109 |
113 size_t GetPrefixLength() const | 110 size_t GetPrefixLength() const; |
114 { | |
115 return prefix_.size(); | |
116 } | |
117 | 111 |
118 const Orthanc::DicomTag& GetFinalTag() const | 112 const Orthanc::DicomTag& GetFinalTag() const; |
119 { | |
120 return finalTag_; | |
121 } | |
122 | 113 |
123 const Orthanc::DicomTag& GetPrefixTag(size_t level) const | 114 const Orthanc::DicomTag& GetPrefixTag(size_t level) const; |
124 { | |
125 return GetLevel(level).GetTag(); | |
126 } | |
127 | 115 |
128 bool IsPrefixUniversal(size_t level) const | 116 bool IsPrefixUniversal(size_t level) const; |
129 { | |
130 return GetLevel(level).IsUniversal(); | |
131 } | |
132 | 117 |
133 size_t GetPrefixIndex(size_t level) const | 118 size_t GetPrefixIndex(size_t level) const; |
134 { | |
135 return GetLevel(level).GetIndex(); | |
136 } | |
137 | 119 |
138 bool HasUniversal() const; | 120 bool HasUniversal() const; |
139 | 121 |
140 // This method is used for an optimization in Stone | 122 // This method is used for an optimization in Stone |
141 // (cf. "DicomStructureSet.cpp") | 123 // (cf. "DicomStructureSet.cpp") |