DaZeus  2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
dazeus::DaZeus Class Reference

#include <dazeus.h>

Public Member Functions

 DaZeus (std::string configFileName=std::string())
 Constructor. More...
 
 ~DaZeus ()
 Destructor. More...
 
void setConfigFileName (std::string fileName)
 
std::string configFileName () const
 
bool configLoaded () const
 Returns whether the configuration is loaded. More...
 
Databasedatabase () const
 Return the database. More...
 
const std::vector< Network * > & networks () const
 
void run ()
 
bool loadConfig ()
 (Re-)loads configuration from the configuration file. More...
 
bool initPlugins ()
 Initialises plugins from the configuration file. More...
 
void autoConnect ()
 Connect to all networks marked "autoconnect". More...
 
bool connectDatabase ()
 Start connecting to the database. More...
 
void stop ()
 
void sigchild ()
 

Detailed Description

Definition at line 20 of file dazeus.h.

Constructor & Destructor Documentation

dazeus::DaZeus::DaZeus ( std::string  configFileName = std::string())

Constructor.

Parameters
configFileNameoptional path to the configuration file. Configuration will not be loaded automatically, use loadConfig() for that.

Definition at line 25 of file dazeus.cpp.

dazeus::DaZeus::~DaZeus ( )

Destructor.

Definition at line 40 of file dazeus.cpp.

Member Function Documentation

void dazeus::DaZeus::autoConnect ( )

Connect to all networks marked "autoconnect".

Warning: This method is usually called outside the event loop, just after initialisation.

Definition at line 63 of file dazeus.cpp.

std::string dazeus::DaZeus::configFileName ( ) const

Definition at line 89 of file dazeus.cpp.

bool dazeus::DaZeus::configLoaded ( ) const

Returns whether the configuration is loaded.

Definition at line 96 of file dazeus.cpp.

bool dazeus::DaZeus::connectDatabase ( )

Start connecting to the database.

Does nothing if already connected.

Definition at line 107 of file dazeus.cpp.

dazeus::Database * dazeus::DaZeus::database ( ) const

Return the database.

Definition at line 128 of file dazeus.cpp.

bool dazeus::DaZeus::initPlugins ( )

Initialises plugins from the configuration file.

Definition at line 138 of file dazeus.cpp.

bool dazeus::DaZeus::loadConfig ( )

(Re-)loads configuration from the configuration file.

If loading failed, this method returns false. Note: this method is automatically called when setConfigFileName is called, and by the constructor.

Definition at line 154 of file dazeus.cpp.

const std::vector<Network*>& dazeus::DaZeus::networks ( ) const
inline

Definition at line 30 of file dazeus.h.

void dazeus::DaZeus::run ( )

Definition at line 237 of file dazeus.cpp.

void dazeus::DaZeus::setConfigFileName ( std::string  fileName)

Definition at line 253 of file dazeus.cpp.

void dazeus::DaZeus::sigchild ( )

Definition at line 227 of file dazeus.cpp.

void dazeus::DaZeus::stop ( )

Definition at line 232 of file dazeus.cpp.


The documentation for this class was generated from the following files: