Mercurial > hg > orthanc-databases
comparison Odbc/Plugins/OdbcIndex.cpp @ 569:f18e46d7dbf8 attach-custom-data
merged find-refactoring -> attach-custom-data
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 24 Sep 2024 15:04:21 +0200 |
parents | 82f73188b58d 451125122692 |
children |
comparison
equal
deleted
inserted
replaced
368:82f73188b58d | 569:f18e46d7dbf8 |
---|---|
1 /** | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2021 Osimis S.A., Belgium | 5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium | |
7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | |
6 * | 8 * |
7 * This program is free software: you can redistribute it and/or | 9 * This program is free software: you can redistribute it and/or |
8 * modify it under the terms of the GNU Affero General Public License | 10 * modify it under the terms of the GNU Affero General Public License |
9 * as published by the Free Software Foundation, either version 3 of | 11 * as published by the Free Software Foundation, either version 3 of |
10 * the License, or (at your option) any later version. | 12 * the License, or (at your option) any later version. |
202 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | 204 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); |
203 } | 205 } |
204 } | 206 } |
205 | 207 |
206 | 208 |
207 void OdbcIndex::ConfigureDatabase(DatabaseManager& manager) | 209 void OdbcIndex::ConfigureDatabase(DatabaseManager& manager, |
210 bool hasIdentifierTags, | |
211 const std::list<IdentifierTag>& identifierTags) | |
208 { | 212 { |
209 uint32_t expectedVersion = 6; | 213 uint32_t expectedVersion = 6; |
210 | 214 |
211 if (GetContext()) // "GetContext()" can possibly be NULL in the unit tests | 215 if (GetContext()) // "GetContext()" can possibly be NULL in the unit tests |
212 { | 216 { |
710 statement.Execute(args); | 714 statement.Execute(args); |
711 } | 715 } |
712 | 716 |
713 SignalDeletedFiles(output, manager); | 717 SignalDeletedFiles(output, manager); |
714 } | 718 } |
719 | |
720 | |
721 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) | |
722 bool OdbcIndex::HasFindSupport() const | |
723 { | |
724 // TODO-FIND | |
725 return false; | |
726 } | |
727 #endif | |
728 | |
729 | |
730 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) | |
731 void OdbcIndex::ExecuteFind(Orthanc::DatabasePluginMessages::TransactionResponse& response, | |
732 DatabaseManager& manager, | |
733 const Orthanc::DatabasePluginMessages::Find_Request& request) | |
734 { | |
735 // TODO-FIND | |
736 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | |
737 } | |
738 #endif | |
715 } | 739 } |