From 6fee126dc8ed8cc7c961c683f17896450dd8de03 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 22 Feb 2013 15:17:08 +0000 Subject: loader for render context --- rotord/rotord.h | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'rotord/rotord.h') 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& args); private: bool _helpRequested; + std::unordered_map render_contexts; }; int main(int argc, char** argv) -- cgit v1.2.3