Mercurial > hg > orthanc
comparison OrthancServer/DicomProtocol/DicomServer.cpp @ 1786:164d78911382 worklists
primitives to handle dicom worklists
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Nov 2015 12:00:14 +0100 |
parents | 6414043df7d8 |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1784:2dbf25006f88 | 1786:164d78911382 |
---|---|
92 { | 92 { |
93 port_ = 104; | 93 port_ = 104; |
94 findRequestHandlerFactory_ = NULL; | 94 findRequestHandlerFactory_ = NULL; |
95 moveRequestHandlerFactory_ = NULL; | 95 moveRequestHandlerFactory_ = NULL; |
96 storeRequestHandlerFactory_ = NULL; | 96 storeRequestHandlerFactory_ = NULL; |
97 worklistRequestHandlerFactory_ = NULL; | |
97 applicationEntityFilter_ = NULL; | 98 applicationEntityFilter_ = NULL; |
98 checkCalledAet_ = true; | 99 checkCalledAet_ = true; |
99 clientTimeout_ = 30; | 100 clientTimeout_ = 30; |
100 continue_ = false; | 101 continue_ = false; |
101 } | 102 } |
243 { | 244 { |
244 throw OrthancException(ErrorCode_NoCStoreHandler); | 245 throw OrthancException(ErrorCode_NoCStoreHandler); |
245 } | 246 } |
246 } | 247 } |
247 | 248 |
249 void DicomServer::SetWorklistRequestHandlerFactory(IWorklistRequestHandlerFactory& factory) | |
250 { | |
251 Stop(); | |
252 worklistRequestHandlerFactory_ = &factory; | |
253 } | |
254 | |
255 bool DicomServer::HasWorklistRequestHandlerFactory() const | |
256 { | |
257 return (worklistRequestHandlerFactory_ != NULL); | |
258 } | |
259 | |
260 IWorklistRequestHandlerFactory& DicomServer::GetWorklistRequestHandlerFactory() const | |
261 { | |
262 if (HasWorklistRequestHandlerFactory()) | |
263 { | |
264 return *worklistRequestHandlerFactory_; | |
265 } | |
266 else | |
267 { | |
268 throw OrthancException(ErrorCode_NoWorklistHandler); | |
269 } | |
270 } | |
271 | |
248 void DicomServer::SetApplicationEntityFilter(IApplicationEntityFilter& factory) | 272 void DicomServer::SetApplicationEntityFilter(IApplicationEntityFilter& factory) |
249 { | 273 { |
250 Stop(); | 274 Stop(); |
251 applicationEntityFilter_ = &factory; | 275 applicationEntityFilter_ = &factory; |
252 } | 276 } |