Daemon.hh File Reference

Daemon public header. More...

#include <senf/Utils/Logger/SenfLog.hh>
#include "Daemon.cci"

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.


Detailed Description

Daemon public header.

Definition in file Daemon.hh.


Classes

class   senf::Daemon
  Daemon process More...

Namespaces

namespace   senf

Defines

#define  HH_SENF_Utils_Daemon_Daemon_   1
#define  SENF_DAEMON_MAIN(klass)
  Provide main() function.

Define Documentation

#define
HH_SENF_Utils_Daemon_Daemon_   1

Definition at line 27 of file Daemon.hh.

#define
SENF_DAEMON_MAIN ( klass  )

Value:

int main(int argc, char const ** argv)                                                    \
        {                                                                                         \
            klass instance;                                                                       \
            return instance.start(argc, 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 235 of file Daemon.hh.