X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=include%2Ffmsapp.h;h=810325d8a69f1c4515dc2307ffcbe895ca01c77c;hp=dab56e18200a3b6e2c6b2171755c4ef61e52dbda;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hpb=3751f10f7127ae0905aa0b52dc6de1c782a38c99 diff --git a/include/fmsapp.h b/include/fmsapp.h index dab56e1..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(); @@ -24,9 +27,17 @@ 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;