CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

container::Demon Class Reference

#include <demon.h>

Inheritance diagram for container::Demon:
Collaboration diagram for container::Demon:

List of all members.


Public Member Functions

 Demon ()
virtual ~Demon ()
void start ()

Protected Member Functions

virtual void run ()=0
virtual void parseOptions (int argc, char **argv)=0

Protected Attributes

std::string m_cinName
std::string m_coutName
std::string m_cerrName
bool m_detach
int m_pidF
std::string m_pidFPath

Detailed Description

Handles spawning main thread, detaching from console, etc.

Author:
Ilya A. Volynets-Evenbakh

Definition at line 31 of file demon.h.


Constructor & Destructor Documentation

container::Demon::Demon (  ) 

Definition at line 33 of file demon.cpp.

container::Demon::~Demon (  )  [virtual]

Definition at line 44 of file demon.cpp.

References m_pidF, and m_pidFPath.


Member Function Documentation

virtual void container::Demon::parseOptions ( int  argc,
char **  argv 
) [protected, pure virtual]

Implemented in container::CServDemon.

virtual void container::Demon::run (  )  [protected, pure virtual]

Implemented in container::CServDemon.

Referenced by start().

void container::Demon::start (  ) 

Definition at line 60 of file demon.cpp.

References m_cerrName, m_cinName, m_coutName, m_detach, m_pidF, m_pidFPath, and run().

Referenced by main().

Here is the call graph for this function:


Member Data Documentation

std::string container::Demon::m_cerrName [protected]

Definition at line 38 of file demon.h.

Referenced by container::CServDemon::parseOptions(), and start().

std::string container::Demon::m_cinName [protected]

Definition at line 38 of file demon.h.

Referenced by start().

std::string container::Demon::m_coutName [protected]

Definition at line 38 of file demon.h.

Referenced by container::CServDemon::parseOptions(), and start().

bool container::Demon::m_detach [protected]

Definition at line 39 of file demon.h.

Referenced by container::CServDemon::parseOptions(), and start().

int container::Demon::m_pidF [protected]

Definition at line 40 of file demon.h.

Referenced by start(), and ~Demon().

std::string container::Demon::m_pidFPath [protected]

Definition at line 41 of file demon.h.

Referenced by container::CServDemon::parseOptions(), start(), and ~Demon().


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

SourceForge.net Logo