Mercurial > hg > orthanc-databases
comparison Framework/Plugins/DatabaseBackendAdapterV4.cpp @ 525:451125122692 find-refactoring
created branch find-refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Jul 2024 13:59:27 +0200 |
parents | 54d518dcd74a |
children | 25cfcb752af6 |
comparison
equal
deleted
inserted
replaced
519:586b80ea397c | 525:451125122692 |
---|---|
435 | 435 |
436 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 3) | 436 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 3) |
437 response.mutable_get_system_information()->set_supports_increment_global_property(accessor.GetBackend().HasAtomicIncrementGlobalProperty()); | 437 response.mutable_get_system_information()->set_supports_increment_global_property(accessor.GetBackend().HasAtomicIncrementGlobalProperty()); |
438 response.mutable_get_system_information()->set_has_update_and_get_statistics(accessor.GetBackend().HasUpdateAndGetStatistics()); | 438 response.mutable_get_system_information()->set_has_update_and_get_statistics(accessor.GetBackend().HasUpdateAndGetStatistics()); |
439 response.mutable_get_system_information()->set_has_measure_latency(accessor.GetBackend().HasMeasureLatency()); | 439 response.mutable_get_system_information()->set_has_measure_latency(accessor.GetBackend().HasMeasureLatency()); |
440 #endif | |
441 | |
442 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) | |
443 response.mutable_get_system_information()->set_supports_find(accessor.GetBackend().HasFindSupport()); | |
440 #endif | 444 #endif |
441 | 445 |
442 break; | 446 break; |
443 } | 447 } |
444 | 448 |
1296 } | 1300 } |
1297 | 1301 |
1298 break; | 1302 break; |
1299 } | 1303 } |
1300 | 1304 |
1305 case Orthanc::DatabasePluginMessages::OPERATION_FIND: | |
1306 { | |
1307 backend.ExecuteFind(response, manager, request.find()); | |
1308 break; | |
1309 } | |
1310 | |
1301 default: | 1311 default: |
1302 LOG(ERROR) << "Not implemented transaction operation from protobuf: " << request.operation(); | 1312 LOG(ERROR) << "Not implemented transaction operation from protobuf: " << request.operation(); |
1303 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | 1313 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); |
1304 } | 1314 } |
1305 } | 1315 } |