comparison OrthancServer/Sources/Database/FindResponse.h @ 5674:74f3aab95886 find-refactoring

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 06 Jul 2024 14:43:46 +0200
parents ebcbb448bea8
children dc96401dbe88
comparison
equal deleted inserted replaced
5673:ebcbb448bea8 5674:74f3aab95886
121 ChildrenInformation childrenStudiesInformation_; 121 ChildrenInformation childrenStudiesInformation_;
122 ChildrenInformation childrenSeriesInformation_; 122 ChildrenInformation childrenSeriesInformation_;
123 ChildrenInformation childrenInstancesInformation_; 123 ChildrenInformation childrenInstancesInformation_;
124 std::set<std::string> labels_; 124 std::set<std::string> labels_;
125 std::map<FileContentType, FileInfo> attachments_; 125 std::map<FileContentType, FileInfo> attachments_;
126 ChildrenMetadata childrenMetadata_; // TODO-FIND: REMOVE
127 126
128 MainDicomTagsAtLevel& GetMainDicomTagsAtLevel(ResourceType level); 127 MainDicomTagsAtLevel& GetMainDicomTagsAtLevel(ResourceType level);
129 128
130 const MainDicomTagsAtLevel& GetMainDicomTagsAtLevel(ResourceType level) const 129 const MainDicomTagsAtLevel& GetMainDicomTagsAtLevel(ResourceType level) const
131 { 130 {
147 internalId_(internalId), 146 internalId_(internalId),
148 identifier_(identifier) 147 identifier_(identifier)
149 { 148 {
150 } 149 }
151 150
152 ~Resource();
153
154 ResourceType GetLevel() const 151 ResourceType GetLevel() const
155 { 152 {
156 return level_; 153 return level_;
157 } 154 }
158 155
267 const std::map<FileContentType, FileInfo>& GetAttachments() const 264 const std::map<FileContentType, FileInfo>& GetAttachments() const
268 { 265 {
269 return attachments_; 266 return attachments_;
270 } 267 }
271 268
272 // TODO-FIND: REMOVE
273 void AddChildrenMetadata(MetadataType metadata,
274 const std::list<std::string>& values);
275
276 // TODO-FIND: REMOVE
277 bool LookupChildrenMetadata(std::list<std::string>& values,
278 MetadataType metadata) const;
279
280 const std::string& GetOneInstanceIdentifier() const; 269 const std::string& GetOneInstanceIdentifier() const;
281 270
282 bool HasOneInstanceIdentifier() const 271 bool HasOneInstanceIdentifier() const
283 { 272 {
284 return !GetChildrenIdentifiers(ResourceType_Instance).empty(); 273 return !GetChildrenIdentifiers(ResourceType_Instance).empty();