diff Core/JobsEngine/Operations/JobOperationValues.cpp @ 2616:2f3007bf0708 jobs

event queues in Lua, serialization of sequence of operations
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 May 2018 12:25:37 +0200
parents 5b6c3d77a2a1
children 83ac5a05ce84
line wrap: on
line diff
--- a/Core/JobsEngine/Operations/JobOperationValues.cpp	Mon May 21 09:00:20 2018 +0200
+++ b/Core/JobsEngine/Operations/JobOperationValues.cpp	Tue May 22 12:25:37 2018 +0200
@@ -104,4 +104,17 @@
       return *values_[index];
     }
   }
+
+
+  void JobOperationValues::Serialize(Json::Value& target) const
+  {
+    target = Json::arrayValue;
+
+    for (size_t i = 0; i < values_.size(); i++)
+    {
+      Json::Value tmp;
+      values_[i]->Serialize(tmp);
+      target.append(tmp);
+    }
+  }
 }