comparison OrthancServer/OrthancFindRequestHandler.cpp @ 618:5ab377df6d8b find-move-scp

filtering on aet
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Oct 2013 11:50:17 +0200
parents ec0b7a51d7bd
children 08eca5d86aad
comparison
equal deleted inserted replaced
617:a24b0161b171 618:5ab377df6d8b
34 #include <glog/logging.h> 34 #include <glog/logging.h>
35 #include <boost/regex.hpp> 35 #include <boost/regex.hpp>
36 36
37 #include "../Core/DicomFormat/DicomArray.h" 37 #include "../Core/DicomFormat/DicomArray.h"
38 #include "ServerToolbox.h" 38 #include "ServerToolbox.h"
39 #include "OrthancInitialization.h"
39 40
40 namespace Orthanc 41 namespace Orthanc
41 { 42 {
42 static bool IsWildcard(const std::string& constraint) 43 static bool IsWildcard(const std::string& constraint)
43 { 44 {
298 if (!value.IsNull()) 299 if (!value.IsNull())
299 { 300 {
300 std::string str = query.GetValue(tag).AsString(); 301 std::string str = query.GetValue(tag).AsString();
301 if (!IsWildcard(str)) 302 if (!IsWildcard(str))
302 { 303 {
303 printf(">> [%s]\n", str.c_str());
304 index.LookupTagValue(resources, tag, str/*, level*/); 304 index.LookupTagValue(resources, tag, str/*, level*/);
305 return true; 305 return true;
306 } 306 }
307 } 307 }
308 } 308 }
356 } 356 }
357 } 357 }
358 } 358 }
359 359
360 360
361 void OrthancFindRequestHandler::Handle(const DicomMap& input, 361 void OrthancFindRequestHandler::Handle(DicomFindAnswers& answers,
362 DicomFindAnswers& answers) 362 const DicomMap& input)
363 { 363 {
364 LOG(WARNING) << "Find-SCU request received";
365
366 /** 364 /**
367 * Retrieve the query level. 365 * Retrieve the query level.
368 **/ 366 **/
369 367
370 const DicomValue* levelTmp = input.TestAndGetValue(DICOM_TAG_QUERY_RETRIEVE_LEVEL); 368 const DicomValue* levelTmp = input.TestAndGetValue(DICOM_TAG_QUERY_RETRIEVE_LEVEL);