CuteHMI - Daemon (cutehmi.daemon.2)
cutehmi::daemon::Daemon Class Referencefinal

#include </home/cutebot/devel/cutehmi/tools/cutehmi.daemon.2/src/cutehmi/daemon/Daemon.hpp>

Public Member Functions

 Daemon (CoreData *data, std::function< int(CoreData &)> &core)
 
 ~Daemon ()
 
int exitCode () const
 

Static Public Attributes

static constexpr int EXIT_AGAIN = 129
 

Protected Member Functions

void setExitCode (int exitCode)
 
int exec ()
 
CoreDatadata () const
 

Constructor & Destructor Documentation

◆ Daemon()

cutehmi::daemon::Daemon::Daemon ( CoreData data,
std::function< int(CoreData &)> &  core 
)

◆ ~Daemon()

cutehmi::daemon::Daemon::~Daemon ( )

Member Function Documentation

◆ data()

CoreData * cutehmi::daemon::Daemon::data ( ) const
protected

◆ exec()

int cutehmi::daemon::Daemon::exec ( )
protected

◆ exitCode()

int cutehmi::daemon::Daemon::exitCode ( ) const

◆ setExitCode()

void cutehmi::daemon::Daemon::setExitCode ( int  exitCode)
protected

Member Data Documentation

◆ EXIT_AGAIN

constexpr int cutehmi::daemon::Daemon::EXIT_AGAIN = 129
staticconstexpr