Daemon.hh File Reference

Daemon public header. More...

Include dependency graph for Daemon.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  senf::Daemon
 Daemon process More...
 

Namespaces

 senf
 

Macros

#define SENF_DAEMON_MAIN(klass)
 Provide main() function. More...
 

Detailed Description

Daemon public header.

Definition in file Daemon.hh.

Macro Definition Documentation

◆ SENF_DAEMON_MAIN

#define SENF_DAEMON_MAIN (   klass)
Value:
int main(int argc, char const ** argv) \
{ \
klass instance; \
return instance.start(argc, argv); \
}
int main(int argc, char const *argv[])

Provide main() function.

This macro will provide a main() function to launch the daemon process defined in klass. klass must be a class derived from senf::Daemon.

Definition at line 227 of file Daemon.hh.