From 06c11d8aa29e3a097c3ceb076b7d78f1c28a974f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 27 Feb 2013 12:00:18 +0000 Subject: parsing work packet --- rotord/rotord.cpp | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'rotord/rotord.cpp') diff --git a/rotord/rotord.cpp b/rotord/rotord.cpp index 22e2e9f..c4103e3 100755 --- a/rotord/rotord.cpp +++ b/rotord/rotord.cpp @@ -197,19 +197,26 @@ HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPS //could have a seperate mutex for the graph //all the get methods want to get something from the render context and express it in xml. //what is the best way... - if (command[1]=="audio") { - if (request.getMethod()=="PUT") { - //get audio file location and initiate analysis - std::string s; - std::ostringstream os; - os<)task)->add_queue(s); - content="1\n"; - } + //should the processing be done inside the render context - I think so + + //++++ processing inside object + //---- processing occurring in different places + + //the idea of command queueing won't work + + std::string s; + std::ostringstream os; + os< sc; + sc.push_back(request.getMethod()); + for (auto& i: command){ + sc.push_back(i); } + sc.push_back(s); + content=((Poco::AutoPtr)task)->session_command(command); } } } -- cgit v1.2.3