Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPluginDatabaseV3.cpp @ 5554:12d8a1a266e9 find-refactoring
introduction of FindRequest and FindResponse
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Apr 2024 16:13:24 +0200 |
parents | 2c5eb1ef26a0 |
children | b0b5546f1b9f |
comparison
equal
deleted
inserted
replaced
5549:dcbf0c776945 | 5554:12d8a1a266e9 |
---|---|
27 # error The plugin support is disabled | 27 # error The plugin support is disabled |
28 #endif | 28 #endif |
29 | 29 |
30 #include "../../../OrthancFramework/Sources/Logging.h" | 30 #include "../../../OrthancFramework/Sources/Logging.h" |
31 #include "../../../OrthancFramework/Sources/OrthancException.h" | 31 #include "../../../OrthancFramework/Sources/OrthancException.h" |
32 #include "../../Sources/Database/Compatibility/GenericFind.h" | |
32 #include "../../Sources/Database/ResourcesContent.h" | 33 #include "../../Sources/Database/ResourcesContent.h" |
33 #include "../../Sources/Database/VoidDatabaseListener.h" | 34 #include "../../Sources/Database/VoidDatabaseListener.h" |
34 #include "PluginsEnumerations.h" | 35 #include "PluginsEnumerations.h" |
35 | 36 |
36 #include <cassert> | 37 #include <cassert> |
1057 | 1058 |
1058 | 1059 |
1059 virtual void ListAllLabels(std::set<std::string>& target) ORTHANC_OVERRIDE | 1060 virtual void ListAllLabels(std::set<std::string>& target) ORTHANC_OVERRIDE |
1060 { | 1061 { |
1061 throw OrthancException(ErrorCode_InternalError); // Not supported | 1062 throw OrthancException(ErrorCode_InternalError); // Not supported |
1063 } | |
1064 | |
1065 | |
1066 virtual void ExecuteFind(FindResponse& response, | |
1067 const FindRequest& request) ORTHANC_OVERRIDE | |
1068 { | |
1069 Compatibility::GenericFind find(*this); | |
1070 find.Execute(response, request); | |
1062 } | 1071 } |
1063 }; | 1072 }; |
1064 | 1073 |
1065 | 1074 |
1066 void OrthancPluginDatabaseV3::CheckSuccess(OrthancPluginErrorCode code) const | 1075 void OrthancPluginDatabaseV3::CheckSuccess(OrthancPluginErrorCode code) const |