core::Epona Class Reference

Epona core module class. More...

#include <epona.h>

Inheritance diagram for core::Epona:

modules::Core modules::Module List of all members.

Public Types

typedef hidden::Directives Directives

Public Member Functions

 Epona (int ac, char const *const *av, char const *const *envp)
 Core module constructor.
 ~Epona ()
 Core module destructor.
virtual conf::ConfQconfig (modules::Core &core, conf::ConfGlobalQ &global)
 Implements Module::config().
void dump_core (bool dump)
 Sets whether Epona should dump core or not.
virtual void fatal (char const *msg=0)
 Implements Core::fatal().
virtual void notify (Module &sender, int msg, void *arg)
 Implements Module::notify().
void pid_erase (const char *filename)
 Removes a PID file.
void pid_write (const char *filename)
 Writes a PID file.
void run ()
 Epona main loop.
virtual cmdline::CmdLineParserclp ()
 Implements Core::clp().
hidden::Directives const & cd () const
 Returns the core configuration directives.
std::string const & conffile () const
 Returns the main configuration file.
virtual conf::ConfLoggerconf_logger ()
 Implements Core::conf_logger;.
virtual xlog::Loggerlogger ()
 Implements Core::logger().
virtual modules::ModManagermodules ()
 Implements Core::modules().
virtual scheduler::Schedulertasks ()
 Implements Core::tasks().
virtual int version () const
 Implements Module::version().
virtual std::string const version_string () const
 Implements Core::version_string().

Static Public Attributes

static uint32_t const efTakeOver = 0x80000000
 --module is taking over Epona
static uint32_t const efNoExpire = 0x40000000
 No expiration checks.

Friends

class ECmdLineParser

Detailed Description

This module contains all the core functionality of Epona, namely, the command-line and configuration file parsers, the modules manager, the scheduler and the program logger. It is automatically created on startup and available to all modules.


Member Function Documentation

void core::Epona::dump_core bool  dump  ) 
 

Sets whether Epona should dump core when receiving SIGBUS, SIGFPE, SIGILL, SIGSEGV and other fatal signals.

Parameters:
[in] dump Set to true to dump a core, or false to use Epona's own handling.

void core::Epona::pid_erase const char *  filename  ) 
 

Removes the given PID file.

Parameters:
[in] filename The name of the file to remove.

void core::Epona::pid_write const char *  filename  ) 
 

Writes the given PID file.

Parameters:
[in] filename The name of the file to write.

void core::Epona::run  ) 
 

This is called automatically from main(). It mustn't be called twice so ignore it.


The documentation for this class was generated from the following file:
Generated on Sun May 20 21:32:19 2007 for Epona API by  doxygen 1.4.6