Mercurial > hg > orthanc-databases
annotate Framework/Plugins/DatabaseBackendAdapterV3.h @ 249:7f5ee2b42a86
better performance warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Apr 2021 10:07:14 +0200 |
parents | d1b124d116c1 |
children | 16aac0287485 |
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 | |
5 * Copyright (C) 2017-2021 Osimis S.A., Belgium | |
6 * | |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU Affero General Public License | |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 **/ | |
20 | |
21 | |
22 | |
23 #pragma once | |
24 | |
25 #include "IndexBackend.h" | |
26 | |
27 | |
28 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | |
29 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 2) | |
30 | |
31 namespace OrthancDatabases | |
32 { | |
33 /** | |
34 * @brief Bridge between C and C++ database engines. | |
35 * | |
36 * Class creating the bridge between the C low-level primitives for | |
37 * custom database engines, and the high-level IDatabaseBackend C++ | |
38 * interface, for Orthanc >= 1.9.2. | |
39 **/ | |
40 class DatabaseBackendAdapterV3 | |
41 { | |
42 private: | |
43 class Output; | |
44 | |
45 // This class cannot be instantiated | |
46 DatabaseBackendAdapterV3() | |
47 { | |
48 } | |
49 | |
50 public: | |
225
94c9908e6aca
removed DatabaseManager member out of class IndexBackend
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
222
diff
changeset
|
51 class Adapter; |
212 | 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 |