comparison 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
comparison
equal deleted inserted replaced
1788:6a2d507ef064 1789:bdcc1dba4a53
37 namespace Orthanc 37 namespace Orthanc
38 { 38 {
39 class DicomFindAnswers : public boost::noncopyable 39 class DicomFindAnswers : public boost::noncopyable
40 { 40 {
41 private: 41 private:
42 std::vector<ParsedDicomFile*> items_; 42 class Answer;
43
44 std::vector<Answer*> answers_;
45
46 Answer& GetAnswerInternal(size_t index) const;
43 47
44 public: 48 public:
45 ~DicomFindAnswers() 49 ~DicomFindAnswers()
46 { 50 {
47 Clear(); 51 Clear();
58 void Add(const char* dicom, 62 void Add(const char* dicom,
59 size_t size); 63 size_t size);
60 64
61 size_t GetSize() const 65 size_t GetSize() const
62 { 66 {
63 return items_.size(); 67 return answers_.size();
64 } 68 }
65 69
66 ParsedDicomFile& GetAnswer(size_t index) const; 70 ParsedDicomFile& GetAnswer(size_t index) const;
71
72 DcmDataset* ExtractDcmDataset(size_t index) const;
67 73
68 void ToJson(Json::Value& target, 74 void ToJson(Json::Value& target,
69 bool simplify) const; 75 bool simplify) const;
70 76
71 void ToJson(Json::Value& target, 77 void ToJson(Json::Value& target,