Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/Sources/Search/DatabaseConstraint.h Tue Jun 30 17:00:18 2020 +0200 +++ b/OrthancServer/Sources/Search/DatabaseConstraint.h Wed Jul 01 08:42:21 2020 +0200 @@ -33,8 +33,16 @@ #pragma once -#include "../../../OrthancFramework/Sources/DicomFormat/DicomMap.h" -#include "../ServerEnumerations.h" +#if !defined(ORTHANC_BUILDING_SERVER_LIBRARY) +# error Macro ORTHANC_BUILDING_SERVER_LIBRARY must be defined +#endif + +#if ORTHANC_BUILDING_SERVER_LIBRARY == 1 +# include "../../../OrthancFramework/Sources/DicomFormat/DicomMap.h" +#else +// This is for the "orthanc-databases" project to reuse this file +# include <DicomFormat/DicomMap.h> +#endif #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 @@ -50,6 +58,15 @@ namespace Orthanc { + enum ConstraintType + { + ConstraintType_Equal, + ConstraintType_SmallerOrEqual, + ConstraintType_GreaterOrEqual, + ConstraintType_Wildcard, + ConstraintType_List + }; + namespace Plugins { #if ORTHANC_ENABLE_PLUGINS == 1