6 #include <Poco/ErrorHandler.h> 
    7 #include <Poco/Exception.h> 
    8 #include <Poco/Util/ServerApplication.h> 
    9 #include <Poco/Util/Option.h> 
   11 #include "util/About.h" 
   12 #include "util/Loggable.h" 
   24 class DIDaemon : 
public Poco::Util::ServerApplication {
 
   29         static int up(
int argc, 
char **argv,
 
   37                 void exception(
const Poco::Exception &e) 
override;
 
   38                 void exception(
const std::exception &e) 
override;
 
   39                 void exception() 
override;
 
   42         void initialize(Poco::Util::Application &
self) 
override;
 
   43         int main(
const std::vector<std::string> &args) 
override;
 
   44         void defineOptions(Poco::Util::OptionSet &options) 
override;
 
   45         void handleHelp(
const std::string &name, 
const std::string &value);
 
   46         void handleVersion(
const std::string &name, 
const std::string &value);
 
   47         void handleDebugStartup(
const std::string &name, 
const std::string &value);
 
   48         void handleDefine(
const std::string &name, 
const std::string &value);
 
   49         void handleConfig(
const std::string &name, 
const std::string &value);
 
   50         void handleNoEarly(
const std::string &name, 
const std::string &value);
 
   51         void startRunner(
const std::string &name);
 
   52         void printHelp() 
const;
 
   53         void printVersion() 
const;
 
   54         void notifyStarted() 
const;
 
   55         void testPocoCompatibility() 
const;
 
   56         void logStartup() 
const;
 
   58         bool helpRequested() 
const;
 
   59         bool versionRequested() 
const;
 
   60         bool noEarlyRequested() 
const;
 
   61         std::vector<std::string> libraryPaths();
 
   62         std::string runnerName();
 
   63         std::string version() 
const;
 
   66         bool m_helpRequested = 
false;
 
   67         bool m_versionRequested = 
false;
 
   68         bool m_noEarlyRequested = 
false;
 
   71         Poco::Util::Option m_helpOption;
 
   72         Poco::Util::Option m_versionOption;
 
   73         Poco::Util::Option m_debugStartupOption;
 
   74         Poco::Util::Option m_defineOption;
 
   75         Poco::Util::Option m_configOption;
 
   76         Poco::Util::Option m_notifyStartedOption;
 
   77         Poco::Util::Option m_noEarlyOption;
 
Definition: DIDaemon.h:24
Definition: DIDaemon.h:33
static int up(int argc, char **argv, const About &about=About())
Definition: DIDaemon.cpp:95
Definition: Loggable.h:19