Mercurial > hg > orthanc-databases
comparison Framework/Plugins/DatabaseBackendAdapterV3.h @ 212:821d4ba83dc3
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 24 Mar 2021 15:47:14 +0100 |
parents | |
children | c8e06b41feec |
comparison
equal
deleted
inserted
replaced
211:d74a92ac00ea | 212:821d4ba83dc3 |
---|---|
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: | |
51 class Transaction; | |
52 | |
53 class Factory : public IDatabaseBackendOutput::IFactory | |
54 { | |
55 public: | |
56 virtual IDatabaseBackendOutput* CreateOutput() ORTHANC_OVERRIDE; | |
57 }; | |
58 | |
59 static void Register(IndexBackend& backend); | |
60 }; | |
61 } | |
62 | |
63 # endif | |
64 #endif |