Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 1795:af6840eb23ee worklists
HierarchicalMatcher
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Nov 2015 17:41:22 +0100 |
parents | 1b1d5470233f |
children | 5e08a5fe6b27 |
comparison
equal
deleted
inserted
replaced
1794:bdfae6e17d23 | 1795:af6840eb23ee |
---|---|
50 #include "OrthancMoveRequestHandler.h" | 50 #include "OrthancMoveRequestHandler.h" |
51 #include "ServerToolbox.h" | 51 #include "ServerToolbox.h" |
52 #include "../Plugins/Engine/OrthancPlugins.h" | 52 #include "../Plugins/Engine/OrthancPlugins.h" |
53 #include "FromDcmtkBridge.h" | 53 #include "FromDcmtkBridge.h" |
54 | 54 |
55 #include "Search/HierarchicalMatcher.h" | |
56 | |
55 using namespace Orthanc; | 57 using namespace Orthanc; |
56 | 58 |
57 | 59 |
58 class OrthancStoreRequestHandler : public IStoreRequestHandler | 60 class OrthancStoreRequestHandler : public IStoreRequestHandler |
59 { | 61 { |
99 server_(context) | 101 server_(context) |
100 { | 102 { |
101 } | 103 } |
102 | 104 |
103 virtual bool Handle(DicomFindAnswers& answers, | 105 virtual bool Handle(DicomFindAnswers& answers, |
104 const ParsedDicomFile& query, | 106 ParsedDicomFile& query, |
105 const std::string& remoteIp, | 107 const std::string& remoteIp, |
106 const std::string& remoteAet) | 108 const std::string& remoteAet) |
107 { | 109 { |
108 printf("Worklist\n"); | 110 printf("Worklist\n"); |
111 | |
112 bool caseSensitivePN = Configuration::GetGlobalBoolParameter("CaseSensitivePN", false); | |
113 HierarchicalMatcher matcher(query, caseSensitivePN); | |
114 | |
115 std::cout << matcher.Format(); | |
116 | |
109 return true; | 117 return true; |
110 } | 118 } |
111 }; | 119 }; |
112 | 120 |
113 | 121 |