Mercurial > hg > orthanc
diff Core/DicomFormat/DicomInstanceHasher.h @ 315:fc856d175d18
modifications
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 21 Dec 2012 17:18:04 +0100 |
parents | 78e28d0098d9 |
children | bdd72233b105 |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomInstanceHasher.h Fri Dec 21 13:53:24 2012 +0100 +++ b/Core/DicomFormat/DicomInstanceHasher.h Fri Dec 21 17:18:04 2012 +0100 @@ -59,9 +59,22 @@ std::string seriesHash_; std::string instanceHash_; + void Setup(const std::string& patientId, + const std::string& studyUid, + const std::string& seriesUid, + const std::string& instanceUid); + public: DicomInstanceHasher(const DicomMap& instance); + DicomInstanceHasher(const std::string& patientId, + const std::string& studyUid, + const std::string& seriesUid, + const std::string& instanceUid) + { + Setup(patientId, studyUid, seriesUid, instanceUid); + } + const std::string& GetPatientId() const { return patientId_;