42 const std::string & extra_help = std::string() ) ;
54 void report(
const std::string & prefix , std::exception & e ) ;
59 void report(
const std::string & prefix ,
const std::string & what ) ;
62 static void sanitise(
int argc ,
char * argv [] ) ;
67 void operator=(
const Startup & ) ;
68 static void onSignal(
int ) ;
void report(const std::string &prefix, std::exception &e)
Reports an error if start()ed and "daemon" or "syslog" are in effect.
A command line option parser.
Startup(const G::GetOpt &, const std::string &args_help, bool argc_ok, const std::string &extra_help=std::string())
Constructor, typically used very early in main().
static void sanitise(int argc, char *argv[])
Removes sensitive information from the command-line, if possible.
Controls and implements low-level logging output, as used by the Log interface.
A handy synthesis of G::LogOutput, G::GetOpt, G::Root, G::Daemon and G::PidFile, used to initialise a...
A class for creating pid files.
void start()
Called just before the event loop.