comparison Core/JobsEngine/Operations/SequenceOfOperationsJob.cpp @ 2621:83ac5a05ce84 jobs

primitives for unserializing jobs
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 May 2018 17:37:16 +0200
parents 1232922c8793
children e1893d31652a
comparison
equal deleted inserted replaced
2620:1232922c8793 2621:83ac5a05ce84
363 363
364 void SequenceOfOperationsJob::GetInternalContent(Json::Value& value) 364 void SequenceOfOperationsJob::GetInternalContent(Json::Value& value)
365 { 365 {
366 boost::mutex::scoped_lock lock(mutex_); 366 boost::mutex::scoped_lock lock(mutex_);
367 367
368 value = Json::arrayValue; 368 Json::Value tmp = Json::arrayValue;
369 for (size_t i = 0; i < operations_.size(); i++) 369 for (size_t i = 0; i < operations_.size(); i++)
370 { 370 {
371 Json::Value operation = Json::objectValue; 371 Json::Value operation = Json::objectValue;
372 operations_[i]->Serialize(operation); 372 operations_[i]->Serialize(operation);
373 value.append(operation); 373 tmp.append(operation);
374 } 374 }
375
376 value["Operations"] = tmp;
377 value["TrailingTimeout"] = static_cast<unsigned int>(trailingTimeout_.total_milliseconds());
378 value["DicomTimeout"] = connectionManager_.GetTimeout();
379 value["Current"] = static_cast<unsigned int>(current_);
375 } 380 }
376 } 381 }