comparison OrthancServer/Sources/Database/FindResponse.h @ 5673:ebcbb448bea8 find-refactoring

improved memory
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 06 Jul 2024 14:31:22 +0200
parents e300f22a46f0
children 74f3aab95886
comparison
equal deleted inserted replaced
5672:e300f22a46f0 5673:ebcbb448bea8
67 }; 67 };
68 68
69 class ChildrenInformation : public boost::noncopyable 69 class ChildrenInformation : public boost::noncopyable
70 { 70 {
71 private: 71 private:
72 typedef std::map<MetadataType, std::set<std::string> > MetadataValues; 72 typedef std::map<MetadataType, std::set<std::string>* > MetadataValues;
73 typedef std::map<DicomTag, std::set<std::string> > MainDicomTagValues; 73 typedef std::map<DicomTag, std::set<std::string>* > MainDicomTagValues;
74 74
75 std::set<std::string> identifiers_; 75 std::set<std::string> identifiers_;
76 MetadataValues metadataValues_; 76 MetadataValues metadataValues_;
77 MainDicomTagValues mainDicomTagValues_; 77 MainDicomTagValues mainDicomTagValues_;
78 78
79 public: 79 public:
80 ~ChildrenInformation();
81
80 void AddIdentifier(const std::string& identifier); 82 void AddIdentifier(const std::string& identifier);
81 83
82 const std::set<std::string>& GetIdentifiers() const 84 const std::set<std::string>& GetIdentifiers() const
83 { 85 {
84 return identifiers_; 86 return identifiers_;