comparison 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
comparison
equal deleted inserted replaced
2614:3200223f9ade 2616:2f3007bf0708
102 { 102 {
103 assert(values_[index] != NULL); 103 assert(values_[index] != NULL);
104 return *values_[index]; 104 return *values_[index];
105 } 105 }
106 } 106 }
107
108
109 void JobOperationValues::Serialize(Json::Value& target) const
110 {
111 target = Json::arrayValue;
112
113 for (size_t i = 0; i < values_.size(); i++)
114 {
115 Json::Value tmp;
116 values_[i]->Serialize(tmp);
117 target.append(tmp);
118 }
119 }
107 } 120 }