summaryrefslogtreecommitdiff
path: root/rotord/rotord.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-02-22 15:17:08 +0000
committerTim Redfern <tim@herge.(none)>2013-02-22 15:17:08 +0000
commit6fee126dc8ed8cc7c961c683f17896450dd8de03 (patch)
treea3d68a43ddf6ed684a640ae2296c805720d4d5e9 /rotord/rotord.h
parent2cc106d2ca074a80d3e1c4a367951ea391f890d9 (diff)
loader for render context
Diffstat (limited to 'rotord/rotord.h')
-rw-r--r--rotord/rotord.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/rotord/rotord.h b/rotord/rotord.h
index 8079dd7..bbc566f 100644
--- a/rotord/rotord.h
+++ b/rotord/rotord.h
@@ -51,26 +51,32 @@ class RotorRequestHandler: public HTTPRequestHandler
std::string _format;
};
-class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory
+class AudioAnalyserHandler: public HTTPRequestHandler
{
public:
- RotorRequestHandlerFactory(const std::string& format);
- HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request);
+ AudioAnalyserHandler(const vampHost::Settings& _settings);
+ void handleRequest(HTTPServerRequest& request,HTTPServerResponse& response);
private:
- std::string _format;
+ vampHost::Settings settings;
};
-
-class AudioAnalyserHandler: public HTTPRequestHandler
+class RenderContextHandler: public HTTPRequestHandler
{
public:
- AudioAnalyserHandler(const vampHost::Settings& _settings);
+ RenderContextHandler(const Rotor::Command& command);
void handleRequest(HTTPServerRequest& request,HTTPServerResponse& response);
private:
- vampHost::Settings settings;
+ //stateless
};
-
+class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory
+{
+ public:
+ RotorRequestHandlerFactory(const std::string& format);
+ HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request);
+ private:
+ std::string _format;
+};
class RotorServer: public Poco::Util::ServerApplication
{
@@ -85,6 +91,7 @@ class RotorServer: public Poco::Util::ServerApplication
int main(const std::vector<std::string>& args);
private:
bool _helpRequested;
+ std::unordered_map<Poco::UUID,Rotor::Render_context> render_contexts;
};
int main(int argc, char** argv)