comparison Framework/Plugins/GlobalProperties.h @ 239:e9ba888f371b

fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Apr 2021 20:30:15 +0200
parents 35598014f140
children 16aac0287485
comparison
equal deleted inserted replaced
238:f033cc039264 239:e9ba888f371b
25 25
26 26
27 namespace Orthanc 27 namespace Orthanc
28 { 28 {
29 /** 29 /**
30 * The enum "GlobalProperty" below must use same values as in the 30 * The enum "GlobalProperty" is a subset of the "GlobalProperty_XXX"
31 * source code of the Orthanc server: 31 * values from the Orthanc server that have a special meaning to the
32 * database plugins:
32 * https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Sources/ServerEnumerations.h 33 * https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Sources/ServerEnumerations.h
34 *
35 * WARNING: The values must be the same between the Orthanc core and
36 * this enum!
33 **/ 37 **/
34 38
35 enum GlobalProperty 39 enum GlobalProperty
36 { 40 {
37 GlobalProperty_DatabaseSchemaVersion = 1, // Unused in the Orthanc core as of Orthanc 0.9.5 41 GlobalProperty_DatabaseSchemaVersion = 1, // Unused in the Orthanc core as of Orthanc 0.9.5
38 GlobalProperty_FlushSleep = 2,
39 GlobalProperty_AnonymizationSequence = 3,
40 GlobalProperty_JobsRegistry = 5,
41 GlobalProperty_GetTotalSizeIsFast = 6, // New in Orthanc 1.5.2 42 GlobalProperty_GetTotalSizeIsFast = 6, // New in Orthanc 1.5.2
42 GlobalProperty_Modalities = 20, // New in Orthanc 1.5.0
43 GlobalProperty_Peers = 21, // New in Orthanc 1.5.0
44 43
45 // Reserved values for internal use by the database plugins 44 // Reserved values for internal use by the database plugins
46 GlobalProperty_DatabasePatchLevel = 4, 45 GlobalProperty_DatabasePatchLevel = 4,
47 GlobalProperty_DatabaseInternal0 = 10, 46 GlobalProperty_DatabaseInternal0 = 10,
48 GlobalProperty_DatabaseInternal1 = 11, 47 GlobalProperty_DatabaseInternal1 = 11,
51 GlobalProperty_DatabaseInternal4 = 14, 50 GlobalProperty_DatabaseInternal4 = 14,
52 GlobalProperty_DatabaseInternal5 = 15, 51 GlobalProperty_DatabaseInternal5 = 15,
53 GlobalProperty_DatabaseInternal6 = 16, 52 GlobalProperty_DatabaseInternal6 = 16,
54 GlobalProperty_DatabaseInternal7 = 17, 53 GlobalProperty_DatabaseInternal7 = 17,
55 GlobalProperty_DatabaseInternal8 = 18, 54 GlobalProperty_DatabaseInternal8 = 18,
56 GlobalProperty_DatabaseInternal9 = 19 55 GlobalProperty_DatabaseInternal9 = 19 // Only used in unit tests
57 }; 56 };
58 } 57 }