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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Orthanc - A Lightweight, RESTful DICOM Store
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
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
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 *
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 * This program is free software: you can redistribute it and/or
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 * modify it under the terms of the GNU Affero General Public License
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 * as published by the Free Software Foundation, either version 3 of
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 * the License, or (at your option) any later version.
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 *
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful, but
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 * Affero General Public License for more details.
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 *
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 * You should have received a copy of the GNU Affero General Public License
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 **/
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 #pragma once
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
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
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
27
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
28 namespace Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
29 {
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
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
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
38 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
39
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
40 enum GlobalProperty
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
41 {
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
42 GlobalProperty_DatabaseSchemaVersion = 1, // Unused in the Orthanc core as of Orthanc 0.9.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
43 GlobalProperty_GetTotalSizeIsFast = 6, // New in Orthanc 1.5.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
44
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
45 // Reserved values for internal use by the database plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
46 GlobalProperty_DatabasePatchLevel = 4,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
47 GlobalProperty_DatabaseInternal0 = 10,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
48 GlobalProperty_DatabaseInternal1 = 11,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
49 GlobalProperty_DatabaseInternal2 = 12,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
50 GlobalProperty_DatabaseInternal3 = 13,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
51 GlobalProperty_DatabaseInternal4 = 14,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
52 GlobalProperty_DatabaseInternal5 = 15,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
53 GlobalProperty_DatabaseInternal6 = 16,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
54 GlobalProperty_DatabaseInternal7 = 17,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
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
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
57 };
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
58 }