diff OrthancFramework/Sources/JobsEngine/Operations/JobOperationValues.h @ 4348:93c281752e7a

reintroduced backward ABI compatibility in Orthanc Framework .so for unit tests of Orthanc 1.7.2 to 1.8.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 06 Dec 2020 12:21:31 +0100
parents 2ae905070221
children e457c30970cf
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/Operations/JobOperationValues.h	Sun Dec 06 11:42:39 2020 +0100
+++ b/OrthancFramework/Sources/JobsEngine/Operations/JobOperationValues.h	Sun Dec 06 12:21:31 2020 +0100
@@ -23,6 +23,7 @@
 #pragma once
 
 #include "IJobOperationValue.h"
+#include "../../Compatibility.h"
 
 #include <vector>
 
@@ -30,11 +31,28 @@
 {
   class IJobUnserializer;
 
+#if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1
+  class JobOperationValue
+  {
+    /**
+     * This is for ABI compatibility with Orthanc framework <= 1.8.0,
+     * only to be able to run unit tests from Orthanc 1.7.2 to
+     * 1.8.0. The class was moved to "IJobOperationValue" in 1.8.1,
+     * and its memory layout has changed. Don't use this anymore.
+     **/
+  };
+#endif
+
   class ORTHANC_PUBLIC JobOperationValues : public boost::noncopyable
   {
   private:
     std::vector<IJobOperationValue*>   values_;
 
+#if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1
+    // For binary compatibility with Orthanc <= 1.8.0
+    void Append(JobOperationValue* value) ORTHANC_DEPRECATED;
+#endif
+    
     void Append(JobOperationValues& target,
                 bool clear);