Mercurial > hg > orthanc-databases
comparison Framework/Plugins/GlobalProperties.h @ 152:063aa53b5917
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2020 08:54:32 +0200 |
parents | 4cd7e45b671e |
children | 3236894320d6 |
comparison
equal
deleted
inserted
replaced
150:d9101318442d | 152:063aa53b5917 |
---|---|
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "../Common/DatabaseManager.h" | 24 #include "../Common/DatabaseManager.h" |
25 | 25 |
26 #include <OrthancServer/ServerEnumerations.h> | 26 |
27 namespace Orthanc | |
28 { | |
29 /** | |
30 * The enum "GlobalProperty" below must use same values as in the | |
31 * source code of the Orthanc server: | |
32 * https://hg.orthanc-server.com/orthanc/file/default/OrthancServer/Sources/ServerEnumerations.h | |
33 **/ | |
34 | |
35 enum GlobalProperty | |
36 { | |
37 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_Modalities = 20, // New in Orthanc 1.5.0 | |
43 GlobalProperty_Peers = 21, // New in Orthanc 1.5.0 | |
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, | |
56 GlobalProperty_DatabaseInternal9 = 19 | |
57 }; | |
58 } | |
59 | |
27 | 60 |
28 namespace OrthancDatabases | 61 namespace OrthancDatabases |
29 { | 62 { |
30 bool LookupGlobalProperty(std::string& target /* out */, | 63 bool LookupGlobalProperty(std::string& target /* out */, |
31 IDatabase& db, | 64 IDatabase& db, |