Mercurial > hg > orthanc-databases
annotate Framework/Plugins/DatabaseBackendAdapterV2.h @ 583:ae7375d38607 find-refactoring tip
MySQL: fix ordering
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 21 Oct 2024 18:19:51 +0200 |
parents | 54d518dcd74a |
children |
rev | line source |
---|---|
0 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
507
54d518dcd74a
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
459
diff
changeset
|
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
54d518dcd74a
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
459
diff
changeset
|
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
459
ecd0b719cff5
update year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
389
diff
changeset
|
7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
0 | 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 | |
25 /** | |
26 * NOTE: Until Orthanc 1.4.0, this file was part of the Orthanc source | |
27 * distribution. This file is now part of "orthanc-databases", in | |
28 * order to uncouple its evolution from the Orthanc core. | |
29 **/ | |
30 | |
31 #pragma once | |
32 | |
202 | 33 #include "IDatabaseBackend.h" |
152 | 34 |
204 | 35 |
203
2089d4071408
moving classes out of OrthancPlugins namespace, to OrthancDatabases
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
202
diff
changeset
|
36 namespace OrthancDatabases |
204 | 37 { |
0 | 38 /** |
39 * @brief Bridge between C and C++ database engines. | |
40 * | |
41 * Class creating the bridge between the C low-level primitives for | |
42 * custom database engines, and the high-level IDatabaseBackend C++ | |
204 | 43 * interface, for Orthanc <= 1.9.1. |
0 | 44 * |
45 * @ingroup Callbacks | |
46 **/ | |
200 | 47 class DatabaseBackendAdapterV2 |
0 | 48 { |
49 private: | |
50 // This class cannot be instantiated | |
200 | 51 DatabaseBackendAdapterV2() |
0 | 52 { |
53 } | |
54 | |
205
873e37048f96
renaming OrthancCppDatabasePlugin.h as DatabaseBackendAdapterV2.h
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
204
diff
changeset
|
55 public: |
224
61c309e06797
added internal class DatabaseBackendAdapterV2::Adapter
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
222
diff
changeset
|
56 class Adapter; |
205
873e37048f96
renaming OrthancCppDatabasePlugin.h as DatabaseBackendAdapterV2.h
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
204
diff
changeset
|
57 class Output; |
0 | 58 |
204 | 59 class Factory : public IDatabaseBackendOutput::IFactory |
60 { | |
61 private: | |
62 OrthancPluginContext* context_; | |
63 OrthancPluginDatabaseContext* database_; | |
64 | |
65 public: | |
66 Factory(OrthancPluginContext* context, | |
67 OrthancPluginDatabaseContext* database) : | |
68 context_(context), | |
69 database_(database) | |
70 { | |
71 } | |
72 | |
205
873e37048f96
renaming OrthancCppDatabasePlugin.h as DatabaseBackendAdapterV2.h
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
204
diff
changeset
|
73 virtual IDatabaseBackendOutput* CreateOutput() ORTHANC_OVERRIDE; |
204 | 74 }; |
75 | |
222
c8e06b41feec
refactoring registration/finalization of index backend
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
207
diff
changeset
|
76 static void Register(IDatabaseBackend* backend); |
204 | 77 |
222
c8e06b41feec
refactoring registration/finalization of index backend
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
207
diff
changeset
|
78 static void Finalize(); |
0 | 79 }; |
80 } |