summaryrefslogtreecommitdiff
path: root/rotord/rotord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/rotord.cpp')
-rwxr-xr-xrotord/rotord.cpp29
1 files changed, 18 insertions, 11 deletions
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<<request.stream().rdbuf();
- s=os.str();
- //pass message to task
- ((Poco::AutoPtr<Rotor::Render_context>)task)->add_queue(s);
- content="<status>1</status>\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<<request.stream().rdbuf();
+ s=os.str();
+
+ vector<string> sc;
+ sc.push_back(request.getMethod());
+ for (auto& i: command){
+ sc.push_back(i);
}
+ sc.push_back(s);
+ content=((Poco::AutoPtr<Rotor::Render_context>)task)->session_command(command);
}
}
}