Mercurial > hg > orthanc-databases
comparison Odbc/Plugins/StoragePlugin.cpp @ 569:f18e46d7dbf8 attach-custom-data
merged find-refactoring -> attach-custom-data
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 24 Sep 2024 15:04:21 +0200 |
parents | 54d518dcd74a |
children |
comparison
equal
deleted
inserted
replaced
368:82f73188b58d | 569:f18e46d7dbf8 |
---|---|
1 /** | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2021 Osimis S.A., Belgium | 5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium | |
7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | |
6 * | 8 * |
7 * This program is free software: you can redistribute it and/or | 9 * This program is free software: you can redistribute it and/or |
8 * modify it under the terms of the GNU Affero General Public License | 10 * modify it under the terms of the GNU Affero General Public License |
9 * as published by the Free Software Foundation, either version 3 of | 11 * as published by the Free Software Foundation, either version 3 of |
10 * the License, or (at your option) any later version. | 12 * the License, or (at your option) any later version. |
26 | 28 |
27 #include <EmbeddedResources.h> // Autogenerated file | 29 #include <EmbeddedResources.h> // Autogenerated file |
28 | 30 |
29 #include <Logging.h> | 31 #include <Logging.h> |
30 | 32 |
33 #define ORTHANC_PLUGIN_NAME "odbc-storage" | |
34 | |
31 | 35 |
32 namespace OrthancDatabases | 36 namespace OrthancDatabases |
33 { | 37 { |
34 class OdbcStorageArea : public StorageBackend | 38 class OdbcStorageArea : public StorageBackend |
35 { | 39 { |
110 #endif | 114 #endif |
111 | 115 |
112 | 116 |
113 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 117 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
114 { | 118 { |
115 if (!OrthancDatabases::InitializePlugin(context, "ODBC", false)) | 119 if (!OrthancDatabases::InitializePlugin(context, ORTHANC_PLUGIN_NAME, "ODBC", false)) |
116 { | 120 { |
117 return -1; | 121 return -1; |
118 } | 122 } |
119 | 123 |
120 #if !defined(_WIN32) | 124 #if !defined(_WIN32) |
188 } | 192 } |
189 | 193 |
190 | 194 |
191 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() | 195 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() |
192 { | 196 { |
193 return "odbc-storage"; | 197 return ORTHANC_PLUGIN_NAME; |
194 } | 198 } |
195 | 199 |
196 | 200 |
197 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() | 201 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() |
198 { | 202 { |