changeset 6680:8abfd5ba48b4

OrthancPluginSetMetricsIntegerValue() was introduced in sdk 1.12.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 Apr 2026 14:28:24 +0200
parents 680791a7d952
children 8c6580e9b5f6
files OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Tue Apr 07 11:30:14 2026 +0200
+++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Tue Apr 07 14:28:24 2026 +0200
@@ -1030,14 +1030,20 @@
     OrthancPluginSetMetricsValue(GetGlobalContext(), name,
                                  value, OrthancPluginMetricsType_Default);
   }
+#endif
 
+
+#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 1)
   inline void SetMetricsValue(const char* name,
                               int64_t value)
   {
     OrthancPluginSetMetricsIntegerValue(GetGlobalContext(), name,
                                         value, OrthancPluginMetricsType_Default);
   }
+#endif
 
+
+#if HAS_ORTHANC_PLUGIN_METRICS == 1
   class MetricsTimer : public boost::noncopyable
   {
   private: