X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Ffmsapp.h;h=810325d8a69f1c4515dc2307ffcbe895ca01c77c;hp=a816d9ae8f830855c128159e0c65e0e82b12bd06;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hpb=dec33c63afafabf83c3039e916725cac6faef9b3 diff --git a/include/fmsapp.h b/include/fmsapp.h index a816d9a..810325d 100644 --- a/include/fmsapp.h +++ b/include/fmsapp.h @@ -2,11 +2,14 @@ #define _fmsapp_ #include "threadwrapper/threadedexecutor.h" +#include "ithreaddatabase.h" #include +#include + // main FMS application class -class FMSApp:public Poco::Util::ServerApplication +class FMSApp:public Poco::Util::ServerApplication,public IThreadDatabase { public: FMSApp(); @@ -23,8 +26,18 @@ private: void handleHelp(const std::string &name, const std::string &value); void displayHelp(); + void handleLogOption(const std::string &name, const std::string &value); + void handleShowOptions(const std::string &name, const std::string &value); + void showOptions(); + void handleSetOption(const std::string &name, const std::string &value); + void setOptions(); bool m_displayhelp; + bool m_showoptions; + bool m_setoption; + std::map m_setoptions; + std::string m_logtype; + std::string m_workingdirectory; ThreadedExecutor m_threads;