Mercurial > hg > orthanc
diff OrthancServer/Search/DatabaseConstraint.h @ 3098:717efd0989f9 db-changes
renamed macro
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 06 Jan 2019 12:43:19 +0100 |
parents | df1b17be20f6 |
children | 94f4a18a79cc |
line wrap: on
line diff
--- a/OrthancServer/Search/DatabaseConstraint.h Sat Jan 05 18:51:36 2019 +0100 +++ b/OrthancServer/Search/DatabaseConstraint.h Sun Jan 06 12:43:19 2019 +0100 @@ -36,14 +36,14 @@ #include "../../Core/DicomFormat/DicomMap.h" #include "../ServerEnumerations.h" -#define ORTHANC_PLUGINS_HAS_DATABASE_OPTIMIZATIONS_1 0 +#define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 #if ORTHANC_ENABLE_PLUGINS == 1 # include <orthanc/OrthancCDatabasePlugin.h> # if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in 1.3.1 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 2) -# undef ORTHANC_PLUGINS_HAS_DATABASE_OPTIMIZATIONS_1 -# define ORTHANC_PLUGINS_HAS_DATABASE_OPTIMIZATIONS_1 1 +# undef ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT +# define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 1 # endif # endif #endif @@ -60,11 +60,11 @@ ResourceType Convert(OrthancPluginResourceType type); #endif -#if ORTHANC_PLUGINS_HAS_DATABASE_OPTIMIZATIONS_1 == 1 +#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1 OrthancPluginConstraintType Convert(ConstraintType constraint); #endif -#if ORTHANC_PLUGINS_HAS_DATABASE_OPTIMIZATIONS_1 == 1 +#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1 ConstraintType Convert(OrthancPluginConstraintType constraint); #endif } @@ -91,7 +91,7 @@ bool caseSensitive, bool mandatory); -#if ORTHANC_PLUGINS_HAS_DATABASE_OPTIMIZATIONS_1 == 1 +#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1 DatabaseConstraint(const OrthancPluginDatabaseConstraint& constraint); #endif @@ -136,7 +136,7 @@ bool IsMatch(const DicomMap& dicom) const; -#if ORTHANC_PLUGINS_HAS_DATABASE_OPTIMIZATIONS_1 == 1 +#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1 void EncodeForPlugins(OrthancPluginDatabaseConstraint& constraint, std::vector<const char*>& tmpValues) const; #endif