Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPluginDatabaseV3.cpp @ 5593:862b54b4cfe2 find-refactoring
implemented the default multi-stage find/expand
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 04 May 2024 11:35:34 +0200 |
parents | b0b5546f1b9f |
children | 3f13db27b399 |
comparison
equal
deleted
inserted
replaced
5592:1e2631b8b9af | 5593:862b54b4cfe2 |
---|---|
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" | |
33 #include "../../Sources/Database/ResourcesContent.h" | 32 #include "../../Sources/Database/ResourcesContent.h" |
34 #include "../../Sources/Database/VoidDatabaseListener.h" | 33 #include "../../Sources/Database/VoidDatabaseListener.h" |
35 #include "PluginsEnumerations.h" | 34 #include "PluginsEnumerations.h" |
36 | 35 |
37 #include <cassert> | 36 #include <cassert> |
1058 | 1057 |
1059 | 1058 |
1060 virtual void ListAllLabels(std::set<std::string>& target) ORTHANC_OVERRIDE | 1059 virtual void ListAllLabels(std::set<std::string>& target) ORTHANC_OVERRIDE |
1061 { | 1060 { |
1062 throw OrthancException(ErrorCode_InternalError); // Not supported | 1061 throw OrthancException(ErrorCode_InternalError); // Not supported |
1063 } | |
1064 | |
1065 | |
1066 virtual void ExecuteFind(FindResponse& response, | |
1067 const FindRequest& request, | |
1068 const std::vector<DatabaseConstraint>& normalized) ORTHANC_OVERRIDE | |
1069 { | |
1070 Compatibility::GenericFind find(*this); | |
1071 find.Execute(response, request); | |
1072 } | 1062 } |
1073 }; | 1063 }; |
1074 | 1064 |
1075 | 1065 |
1076 void OrthancPluginDatabaseV3::CheckSuccess(OrthancPluginErrorCode code) const | 1066 void OrthancPluginDatabaseV3::CheckSuccess(OrthancPluginErrorCode code) const |