diff options
Diffstat (limited to 'rotord/rotord.h')
| -rw-r--r-- | rotord/rotord.h | 25 |
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) |
