diff options
Diffstat (limited to 'rotord/src/rotord.h')
| -rw-r--r-- | rotord/src/rotord.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rotord/src/rotord.h b/rotord/src/rotord.h index 25ff3e3..ecdfefc 100644 --- a/rotord/src/rotord.h +++ b/rotord/src/rotord.h @@ -86,6 +86,13 @@ class RenderContextHandler: public HTTPRequestHandler class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory { public: + RotorRequestHandlerFactory(){ + xmlIO xml; + if(xml.loadFile("settings.xml") ){ + media_dir=xml.getAttribute("Rotor","media_dir","",0); + thumbnail_dir=xml.getAttribute("Rotor","thumbnail_dir","",0); + } + } HTTPRequestHandler* createRequestHandler(const HTTPServerRequest& request); private: @@ -93,6 +100,8 @@ class RotorRequestHandlerFactory: public HTTPRequestHandlerFactory std::unordered_map<std::string,std::string> renders; Poco::UUIDGenerator idGen; Poco::TaskManager manager; + std::string media_dir; + std::string thumbnail_dir; }; class RotorServer: public Poco::Util::ServerApplication |
