diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-02-27 12:00:18 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-02-27 12:00:18 +0000 |
| commit | 06c11d8aa29e3a097c3ceb076b7d78f1c28a974f (patch) | |
| tree | 4933733ecc298cde884d703e40d726f8a6be8adb /rotord/rotord.cpp | |
| parent | 6921d2df9e60525d6e0ddb9452f6eea5845b670c (diff) | |
parsing work packet
Diffstat (limited to 'rotord/rotord.cpp')
| -rwxr-xr-x | rotord/rotord.cpp | 29 |
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); } } } |
