Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

OmniEvents::Daemon Class Reference

Interface class that contains various methods for running omniEvents as a background task. More...

#include <daemon.h>

List of all members.

Public Methods

 Daemon (int &argc, char **&argv)
virtual ~Daemon ()
void tracefile (const char *val)
 Set _tracefile. More...

void pidfile (const char *val)
 Set _pidfile. More...

void foreground (bool val)
 Set _foreground. More...

void daemonize ()
 Redirects output streams to tracefile. More...

void runningOk ()
 Called to signal that all startup operations have completed OK. More...


Private Methods

 Daemon ()
 No implementation. More...


Detailed Description

Interface class that contains various methods for running omniEvents as a background task.

Definition at line 32 of file daemon.h.


Constructor & Destructor Documentation

OmniEvents::Daemon::Daemon   [private]
 

No implementation.

OmniEvents::Daemon::Daemon int &    argc,
char **&    argv
 

Definition at line 96 of file daemon_unix.cc.

References OmniEvents::DaemonImpl::_foreground, OmniEvents::DaemonImpl::_haveParent, OmniEvents::DaemonImpl::_havePidfile, OmniEvents::DaemonImpl::_haveSyslog, OmniEvents::DaemonImpl::_pidfile, OmniEvents::DaemonImpl::_pipe, and OmniEvents::DaemonImpl::_tracefile.

OmniEvents::Daemon::~Daemon   [virtual]
 

Definition at line 112 of file daemon_unix.cc.

References OmniEvents::DaemonImpl::shutdown().


Member Function Documentation

void OmniEvents::Daemon::daemonize  
 

Redirects output streams to tracefile.

Definition at line 110 of file daemon_unix.cc.

References OmniEvents::DaemonImpl::daemonize().

Referenced by main().

void OmniEvents::Daemon::foreground bool    val
 

Set _foreground.

Definition at line 109 of file daemon_unix.cc.

References OmniEvents::DaemonImpl::foreground().

Referenced by main().

void OmniEvents::Daemon::pidfile const char *    val
 

Set _pidfile.

Definition at line 108 of file daemon_unix.cc.

References OmniEvents::DaemonImpl::pidfile().

Referenced by main().

void OmniEvents::Daemon::runningOk  
 

Called to signal that all startup operations have completed OK.

Definition at line 111 of file daemon_unix.cc.

References OmniEvents::DaemonImpl::runningOk().

Referenced by main().

void OmniEvents::Daemon::tracefile const char *    val
 

Set _tracefile.

Definition at line 107 of file daemon_unix.cc.

References OmniEvents::DaemonImpl::tracefile().

Referenced by main().


The documentation for this class was generated from the following files:
Generated on Fri Nov 19 17:42:32 2004 for OmniEvents by doxygen1.2.15