comparison OrthancFramework/Sources/DicomFormat/DicomPath.h @ 4689:ead3b81f4541

added DicomPath::SetPrefixIndex()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Jun 2021 10:54:14 +0200
parents 7182f5732480
children 13efc0967cea
comparison
equal deleted inserted replaced
4688:177ad026d219 4689:ead3b81f4541
64 { 64 {
65 return isUniversal_; 65 return isUniversal_;
66 } 66 }
67 67
68 size_t GetIndex() const; 68 size_t GetIndex() const;
69
70 void SetIndex(size_t index);
69 }; 71 };
70 72
71 std::vector<PrefixItem> prefix_; 73 std::vector<PrefixItem> prefix_;
72 Orthanc::DicomTag finalTag_; 74 Orthanc::DicomTag finalTag_;
73 75
133 return GetLevel(level).GetIndex(); 135 return GetLevel(level).GetIndex();
134 } 136 }
135 137
136 bool HasUniversal() const; 138 bool HasUniversal() const;
137 139
140 // This method is used for an optimization in Stone
141 // (cf. "DicomStructureSet.cpp")
142 void SetPrefixIndex(size_t level,
143 size_t index);
144
138 std::string Format() const; 145 std::string Format() const;
139 146
140 static DicomPath Parse(const std::string& s); 147 static DicomPath Parse(const std::string& s);
141 148
142 static bool IsMatch(const DicomPath& pattern, 149 static bool IsMatch(const DicomPath& pattern,