Mercurial > hg > orthanc-databases
annotate Framework/Plugins/DatabaseBackendAdapterV3.h @ 395:a7a029043670 db-protobuf
integration mainline->db-protobuf
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Apr 2023 14:53:57 +0200 |
parents | 3d6886f3e5b3 |
children | ecd0b719cff5 |
rev | line source |
---|---|
212 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
389
3d6886f3e5b3
upgrade to year 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
375
diff
changeset
|
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
3d6886f3e5b3
upgrade to year 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
375
diff
changeset
|
6 * Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
212 | 7 * |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU Affero General Public License | |
10 * as published by the Free Software Foundation, either version 3 of | |
11 * the License, or (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, but | |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 * Affero General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU Affero General Public License | |
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 **/ | |
21 | |
22 | |
23 | |
24 #pragma once | |
25 | |
26 #include "IndexBackend.h" | |
27 | |
28 | |
29 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | |
30 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) | |
31 | |
32 namespace OrthancDatabases | |
33 { | |
34 /** | |
35 * @brief Bridge between C and C++ database engines. | |
36 * | |
37 * Class creating the bridge between the C low-level primitives for | |
38 * custom database engines, and the high-level IDatabaseBackend C++ | |
39 * interface, for Orthanc >= 1.9.2. | |
40 **/ | |
41 class DatabaseBackendAdapterV3 | |
42 { | |
43 private: | |
44 class Output; | |
45 | |
46 // This class cannot be instantiated | |
47 DatabaseBackendAdapterV3() | |
48 { | |
49 } | |
50 | |
51 public: | |
52 class Transaction; | |
53 | |
54 class Factory : public IDatabaseBackendOutput::IFactory | |
55 { | |
56 public: | |
57 virtual IDatabaseBackendOutput* CreateOutput() ORTHANC_OVERRIDE; | |
58 }; | |
59 | |
234
d1b124d116c1
PostgreSQL index plugin handles retries for collisions between multiple writers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
225
diff
changeset
|
60 static void Register(IndexBackend* backend, |
d1b124d116c1
PostgreSQL index plugin handles retries for collisions between multiple writers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
225
diff
changeset
|
61 size_t countConnections, |
d1b124d116c1
PostgreSQL index plugin handles retries for collisions between multiple writers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
225
diff
changeset
|
62 unsigned int maxDatabaseRetries); |
222
c8e06b41feec
refactoring registration/finalization of index backend
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
63 |
c8e06b41feec
refactoring registration/finalization of index backend
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
64 static void Finalize(); |
212 | 65 }; |
66 } | |
67 | |
68 # endif | |
69 #endif |