changeset 104:5c2746e898dd

fix build with framework 1.12.11
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 14 Apr 2026 07:34:02 +0200
parents 3f961faf25b1
children 3962cdbde00b
files Framework/PushMode/ActivePushTransactions.cpp Framework/TransferBucket.cpp
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/PushMode/ActivePushTransactions.cpp	Tue Jan 27 17:22:34 2026 +0100
+++ b/Framework/PushMode/ActivePushTransactions.cpp	Tue Apr 14 07:34:02 2026 +0200
@@ -26,6 +26,10 @@
 #include <Compatibility.h>  // For std::unique_ptr
 #include <Logging.h>
 
+#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11)
+#  include <ElapsedTimer.h>
+#endif
+
 
 namespace OrthancPlugins
 {
@@ -35,7 +39,13 @@
     DownloadArea                 area_;
     std::vector<TransferBucket>  buckets_;
     BucketCompression            compression_;
+
+#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11)
+    Orthanc::ElapsedTimer          lifeSpanTimer_;
+#else
     Orthanc::Toolbox::ElapsedTimer lifeSpanTimer_;
+#endif
+
   public:
     Transaction(const std::vector<DicomInstanceInfo>& instances,
                 const std::vector<TransferBucket>& buckets,
@@ -96,7 +106,11 @@
     assert(found->second != NULL);
     if (commit)
     {
+#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11)
+      Orthanc::ElapsedTimer timer;
+#else
       Orthanc::Toolbox::ElapsedTimer timer;
+#endif
 
       totalReceivedBytesCount_ += found->second->GetDownloadArea().GetTotalSize();
       totalTimeSpentInReceptionMs_ += found->second->GetLifespanMs();  // don't take the commit phase into account !
--- a/Framework/TransferBucket.cpp	Tue Jan 27 17:22:34 2026 +0100
+++ b/Framework/TransferBucket.cpp	Tue Apr 14 07:34:02 2026 +0200
@@ -24,6 +24,8 @@
 #include <Logging.h>
 #include <OrthancException.h>
 
+#include <boost/lexical_cast.hpp>
+
 
 namespace OrthancPlugins
 {