From 10f50e4a6b8cbe83cf8c9bee238afe93a5958053 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 16 Aug 2013 14:29:23 +0100 Subject: finished render log --- rotord/src/rotord.cpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'rotord/src/rotord.cpp') diff --git a/rotord/src/rotord.cpp b/rotord/src/rotord.cpp index 33031e7..6130cfc 100755 --- a/rotord/src/rotord.cpp +++ b/rotord/src/rotord.cpp @@ -108,6 +108,42 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS status=HTTPResponse::HTTP_OK; } } + else if (command[0]=="listrenders") { + XML.pushTag("rotor"); + if (request.getMethod()=="GET") { + int i=0; + for (auto r: renders){ + XML.addTag("render"); + XML.addAttribute("render","ID",r.first,i); + bool context_found=false; + for (auto& task: manager.taskList()) { + if(task->name()==r.second) { + Render_status status=((Poco::AutoPtr)task)->get_render_status(r.first); + //cerr<<"render "<)task)->session_command(SC,XML,status); if (XML.tagExists("render_id")){ //cerr<<"render started: "<