Mercurial > hg > orthanc
comparison OrthancServer/Sources/Search/DatabaseConstraint.h @ 4096:d633e5bb7ba3
reusing of ISqlLookupFormatter and DatabaseConstraint in orthanc-databases project
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 01 Jul 2020 08:42:21 +0200 |
parents | 05b8fd21089c |
children | 318c16cfccab |
comparison
equal
deleted
inserted
replaced
4094:1c89208fbba9 | 4096:d633e5bb7ba3 |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include "../../../OrthancFramework/Sources/DicomFormat/DicomMap.h" | 36 #if !defined(ORTHANC_BUILDING_SERVER_LIBRARY) |
37 #include "../ServerEnumerations.h" | 37 # error Macro ORTHANC_BUILDING_SERVER_LIBRARY must be defined |
38 #endif | |
39 | |
40 #if ORTHANC_BUILDING_SERVER_LIBRARY == 1 | |
41 # include "../../../OrthancFramework/Sources/DicomFormat/DicomMap.h" | |
42 #else | |
43 // This is for the "orthanc-databases" project to reuse this file | |
44 # include <DicomFormat/DicomMap.h> | |
45 #endif | |
38 | 46 |
39 #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 | 47 #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 |
40 | 48 |
41 #if ORTHANC_ENABLE_PLUGINS == 1 | 49 #if ORTHANC_ENABLE_PLUGINS == 1 |
42 # include <orthanc/OrthancCDatabasePlugin.h> | 50 # include <orthanc/OrthancCDatabasePlugin.h> |
48 # endif | 56 # endif |
49 #endif | 57 #endif |
50 | 58 |
51 namespace Orthanc | 59 namespace Orthanc |
52 { | 60 { |
61 enum ConstraintType | |
62 { | |
63 ConstraintType_Equal, | |
64 ConstraintType_SmallerOrEqual, | |
65 ConstraintType_GreaterOrEqual, | |
66 ConstraintType_Wildcard, | |
67 ConstraintType_List | |
68 }; | |
69 | |
53 namespace Plugins | 70 namespace Plugins |
54 { | 71 { |
55 #if ORTHANC_ENABLE_PLUGINS == 1 | 72 #if ORTHANC_ENABLE_PLUGINS == 1 |
56 OrthancPluginResourceType Convert(ResourceType type); | 73 OrthancPluginResourceType Convert(ResourceType type); |
57 #endif | 74 #endif |