comparison OrthancServer/QueryRetrieveHandler.cpp @ 2996:d547f998c947 db-changes

integration mainline->db-changes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 20:33:13 +0100
parents b1ba0a8311b5
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2981:eff50153a7b3 2996:d547f998c947
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 }