Mercurial > hg > orthanc-databases
annotate Framework/Plugins/GlobalProperties.h @ 427:3cdea26ece73 pg-transactions
merge default -> pg-transactions
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 29 Nov 2023 10:24:18 +0100 |
parents | d700c8f9fc24 |
children | ecd0b719cff5 |
rev | line source |
---|---|
0 | 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:
359
diff
changeset
|
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
3d6886f3e5b3
upgrade to year 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
359
diff
changeset
|
6 * Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
0 | 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 #pragma once | |
24 | |
221
73cc85f3d9c1
implementation of the "serverIdentifier" information for global properties
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
193
diff
changeset
|
25 #define MISSING_SERVER_IDENTIFIER "" |
73cc85f3d9c1
implementation of the "serverIdentifier" information for global properties
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
193
diff
changeset
|
26 |
152 | 27 |
28 namespace Orthanc | |
29 { | |
30 /** | |
239
e9ba888f371b
fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
237
diff
changeset
|
31 * The enum "GlobalProperty" is a subset of the "GlobalProperty_XXX" |
e9ba888f371b
fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
237
diff
changeset
|
32 * values from the Orthanc server that have a special meaning to the |
e9ba888f371b
fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
237
diff
changeset
|
33 * database plugins: |
426
d700c8f9fc24
migration to UCLouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
389
diff
changeset
|
34 * https://orthanc.uclouvain.be/hg/orthanc/file/default/OrthancServer/Sources/ServerEnumerations.h |
239
e9ba888f371b
fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
237
diff
changeset
|
35 * |
e9ba888f371b
fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
237
diff
changeset
|
36 * WARNING: The values must be the same between the Orthanc core and |
e9ba888f371b
fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
237
diff
changeset
|
37 * this enum! |
152 | 38 **/ |
39 | |
40 enum GlobalProperty | |
41 { | |
42 GlobalProperty_DatabaseSchemaVersion = 1, // Unused in the Orthanc core as of Orthanc 0.9.5 | |
43 GlobalProperty_GetTotalSizeIsFast = 6, // New in Orthanc 1.5.2 | |
44 | |
45 // Reserved values for internal use by the database plugins | |
46 GlobalProperty_DatabasePatchLevel = 4, | |
47 GlobalProperty_DatabaseInternal0 = 10, | |
48 GlobalProperty_DatabaseInternal1 = 11, | |
49 GlobalProperty_DatabaseInternal2 = 12, | |
50 GlobalProperty_DatabaseInternal3 = 13, | |
51 GlobalProperty_DatabaseInternal4 = 14, | |
52 GlobalProperty_DatabaseInternal5 = 15, | |
53 GlobalProperty_DatabaseInternal6 = 16, | |
54 GlobalProperty_DatabaseInternal7 = 17, | |
55 GlobalProperty_DatabaseInternal8 = 18, | |
239
e9ba888f371b
fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
237
diff
changeset
|
56 GlobalProperty_DatabaseInternal9 = 19 // Only used in unit tests |
152 | 57 }; |
58 } |