comparison Framework/Plugins/DatabaseBackendAdapterV4.h @ 387:f35b17a38301

integration db-protobuf->mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Apr 2023 17:12:08 +0200
parents be7de633695c
children 3d6886f3e5b3
comparison
equal deleted inserted replaced
371:c1fe28de1bf6 387:f35b17a38301
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-2022 Osimis S.A., Belgium
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
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, 12, 0)
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, through ProtocolBuffers for Orthanc >= 1.12.0.
40 **/
41 class DatabaseBackendAdapterV4
42 {
43 private:
44 // This class cannot be instantiated
45 DatabaseBackendAdapterV4()
46 {
47 }
48
49 public:
50 static void Register(IndexBackend* backend,
51 size_t countConnections,
52 unsigned int maxDatabaseRetries);
53
54 static void Finalize();
55 };
56 }
57
58 # endif
59 #endif