Mercurial > hg > orthanc
comparison OrthancServer/QueryRetrieveHandler.cpp @ 2986:b1ba0a8311b5
exploring hierarchy of C-FIND answers finished
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Dec 2018 10:03:41 +0100 |
parents | 4767d36679ed |
children | 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
2985:32ec5078e32b | 2986:b1ba0a8311b5 |
---|---|
140 Invalidate(); | 140 Invalidate(); |
141 query_.SetValue(tag, value, false); | 141 query_.SetValue(tag, value, false); |
142 } | 142 } |
143 | 143 |
144 | 144 |
145 void QueryRetrieveHandler::CopyStringTag(const DicomMap& from, | |
146 const DicomTag& tag) | |
147 { | |
148 const DicomValue* value = from.TestAndGetValue(tag); | |
149 | |
150 if (value == NULL || | |
151 value->IsNull() || | |
152 value->IsBinary()) | |
153 { | |
154 throw OrthancException(ErrorCode_InexistentTag); | |
155 } | |
156 else | |
157 { | |
158 SetQuery(tag, value->GetContent()); | |
159 } | |
160 } | |
161 | |
162 | |
145 size_t QueryRetrieveHandler::GetAnswersCount() | 163 size_t QueryRetrieveHandler::GetAnswersCount() |
146 { | 164 { |
147 Run(); | 165 Run(); |
148 return answers_.GetSize(); | 166 return answers_.GetSize(); |
149 } | 167 } |