# HG changeset patch # User Sebastien Jodogne # Date 1775564904 -7200 # Node ID 8abfd5ba48b474d98675a3e9727533908453d868 # Parent 680791a7d952a8481d6453a1a801e7d2729d495d OrthancPluginSetMetricsIntegerValue() was introduced in sdk 1.12.1 diff -r 680791a7d952 -r 8abfd5ba48b4 OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h --- 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: