4 #include "threadwrapper/threadedexecutor.h"
\r
5 #include "ithreaddatabase.h"
\r
7 #include <Poco/Util/ServerApplication.h>
\r
11 // main FMS application class
\r
12 class FMSApp:public Poco::Util::ServerApplication,public IThreadDatabase
\r
17 static void Terminate() { ((FMSApp *)&FMSApp::instance())->terminate(); }
\r
20 void initialize(Poco::Util::Application &self);
\r
21 void initializeLogger();
\r
22 void defineOptions(Poco::Util::OptionSet &options);
\r
23 int main(const std::vector<std::string> &args);
\r
25 void StartThreads();
\r
27 void handleHelp(const std::string &name, const std::string &value);
\r
29 void handleLogOption(const std::string &name, const std::string &value);
\r
30 void handleShowOptions(const std::string &name, const std::string &value);
\r
32 void handleSetOption(const std::string &name, const std::string &value);
\r
38 std::map<std::string,std::string> m_setoptions;
\r
39 std::string m_logtype;
\r
40 std::string m_workingdirectory;
\r
42 ThreadedExecutor m_threads;
\r