Mercurial > hg > orthanc-databases
comparison Framework/Plugins/MessagesToolbox.h @ 550:9ed9a91bde33 find-refactoring
un-sharing DatabaseConstraint and ISqlLookupFormatter with Orthanc core
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Sep 2024 15:04:48 +0200 |
parents | |
children | 1a74fc1bea2d |
comparison
equal
deleted
inserted
replaced
546:cd9766f294fa | 550:9ed9a91bde33 |
---|---|
1 /** | |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, 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 | |
8 * | |
9 * This program is free software: you can redistribute it and/or | |
10 * modify it under the terms of the GNU Affero General Public License | |
11 * as published by the Free Software Foundation, either version 3 of | |
12 * the License, or (at your option) any later version. | |
13 * | |
14 * This program is distributed in the hope that it will be useful, but | |
15 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 * Affero General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU Affero General Public License | |
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
21 **/ | |
22 | |
23 | |
24 #pragma once | |
25 | |
26 #include <orthanc/OrthancCDatabasePlugin.h> | |
27 | |
28 // Ensure that "ORTHANC_PLUGINS_VERSION_IS_ABOVE" is defined | |
29 #include "../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" | |
30 | |
31 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | |
32 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) | |
33 # include <OrthancDatabasePlugin.pb.h> | |
34 # endif | |
35 #endif | |
36 | |
37 | |
38 #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 | |
39 | |
40 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) | |
41 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 2) | |
42 # undef ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT | |
43 # define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 1 | |
44 # endif | |
45 #endif | |
46 | |
47 | |
48 #define ORTHANC_PLUGINS_HAS_INTEGRATED_FIND 0 | |
49 | |
50 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) | |
51 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) | |
52 # undef ORTHANC_PLUGINS_HAS_INTEGRATED_FIND | |
53 # define ORTHANC_PLUGINS_HAS_INTEGRATED_FIND 1 | |
54 # endif | |
55 #endif | |
56 | |
57 | |
58 #include <Enumerations.h> | |
59 | |
60 | |
61 namespace OrthancDatabases | |
62 { | |
63 namespace MessagesToolbox | |
64 { | |
65 Orthanc::ResourceType Convert(Orthanc::DatabasePluginMessages::ResourceType resourceType); | |
66 } | |
67 } |