4 #include "threadwrapper/threadedexecutor.h"
\r
6 #include <Poco/Util/ServerApplication.h>
\r
10 // main FMS application class
\r
11 class FMSApp:public Poco::Util::ServerApplication
\r
16 static void Terminate() { ((FMSApp *)&FMSApp::instance())->terminate(); }
\r
19 void initialize(Poco::Util::Application &self);
\r
20 void initializeLogger();
\r
21 void defineOptions(Poco::Util::OptionSet &options);
\r
22 int main(const std::vector<std::string> &args);
\r
24 void StartThreads();
\r
26 void handleHelp(const std::string &name, const std::string &value);
\r
28 void handleLogOption(const std::string &name, const std::string &value);
\r
29 void handleShowOptions(const std::string &name, const std::string &value);
\r
31 void handleSetOption(const std::string &name, const std::string &value);
\r
37 std::map<std::string,std::string> m_setoptions;
\r
38 std::string m_logtype;
\r
40 ThreadedExecutor m_threads;
\r