diff OrthancServer/DicomProtocol/DicomFindAnswers.h @ 1789:bdcc1dba4a53 worklists

optimization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 18 Nov 2015 16:38:08 +0100
parents 1b1d5470233f
children 30e97a1f4093
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/DicomFindAnswers.h	Wed Nov 18 16:11:28 2015 +0100
+++ b/OrthancServer/DicomProtocol/DicomFindAnswers.h	Wed Nov 18 16:38:08 2015 +0100
@@ -39,7 +39,11 @@
   class DicomFindAnswers : public boost::noncopyable
   {
   private:
-    std::vector<ParsedDicomFile*> items_;
+    class Answer;
+
+    std::vector<Answer*> answers_;
+
+    Answer& GetAnswerInternal(size_t index) const;
 
   public:
     ~DicomFindAnswers()
@@ -60,11 +64,13 @@
 
     size_t GetSize() const
     {
-      return items_.size();
+      return answers_.size();
     }
 
     ParsedDicomFile& GetAnswer(size_t index) const;
 
+    DcmDataset* ExtractDcmDataset(size_t index) const;
+
     void ToJson(Json::Value& target,
                 bool simplify) const;