Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/FindRequest.cpp @ 5590:8b32213af23e find-refactoring
replaced FindRequest::ResponseContent by booleans
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 03 May 2024 18:17:53 +0200 |
parents | b0b5546f1b9f |
children | 1e2631b8b9af |
comparison
equal
deleted
inserted
replaced
5589:b51ee994cd6f | 5590:8b32213af23e |
---|---|
60 FindRequest::FindRequest(ResourceType level) : | 60 FindRequest::FindRequest(ResourceType level) : |
61 level_(level), | 61 level_(level), |
62 hasLimits_(false), | 62 hasLimits_(false), |
63 limitsSince_(0), | 63 limitsSince_(0), |
64 limitsCount_(0), | 64 limitsCount_(0), |
65 responseContent_(ResponseContent_IdentifiersOnly), | |
66 retrievePatientTags_(false), | 65 retrievePatientTags_(false), |
67 retrieveStudyTags_(false), | 66 retrieveStudyTags_(false), |
68 retrieveSeriesTags_(false), | 67 retrieveSeriesTags_(false), |
69 retrieveInstanceTags_(false) | 68 retrieveInstanceTags_(false), |
69 retrieveMetadata_(false), | |
70 retrieveLabels_(false), | |
71 retrieveAttachments_(false), | |
72 retrieveParentIdentifier_(false), | |
73 retrieveChildrenIdentifiers_(false), | |
74 retrieveChildrenMetadata_(false) | |
70 { | 75 { |
71 } | 76 } |
72 | 77 |
73 | 78 |
74 FindRequest::~FindRequest() | 79 FindRequest::~FindRequest() |
205 OrderingDirection direction) | 210 OrderingDirection direction) |
206 { | 211 { |
207 ordering_.push_back(new Ordering(Key(metadataType), direction)); | 212 ordering_.push_back(new Ordering(Key(metadataType), direction)); |
208 } | 213 } |
209 | 214 |
215 | |
216 void FindRequest::SetRetrieveParentIdentifier(bool retrieve) | |
217 { | |
218 if (level_ == ResourceType_Patient) | |
219 { | |
220 throw OrthancException(ErrorCode_BadParameterType); | |
221 } | |
222 else | |
223 { | |
224 retrieveParentIdentifier_ = retrieve; | |
225 } | |
226 } | |
227 | |
228 | |
229 void FindRequest::SetRetrieveChildrenIdentifiers(bool retrieve) | |
230 { | |
231 if (level_ == ResourceType_Instance) | |
232 { | |
233 throw OrthancException(ErrorCode_BadParameterType); | |
234 } | |
235 else | |
236 { | |
237 retrieveChildrenIdentifiers_ = retrieve; | |
238 } | |
239 } | |
240 | |
241 | |
242 void FindRequest::SetRetrieveChildrenMetadata(bool retrieve) | |
243 { | |
244 if (level_ == ResourceType_Instance) | |
245 { | |
246 throw OrthancException(ErrorCode_BadParameterType); | |
247 } | |
248 else | |
249 { | |
250 retrieveChildrenMetadata_ = retrieve; | |
251 } | |
252 } | |
210 } | 253 } |