Service< T > Class Template Reference

#include <Service.h>

Inherits ServiceBase.

Inherited by Browser, FSh, Inetd, Init, Syslogd, and Test.

Inheritance diagram for Service< T >:

Inheritance graph
[legend]
Collaboration diagram for Service< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ServiceBasefork ()

Static Public Member Functions

static T * spawn (const ValueList &params=ValueList())
static String NAME ()
static String MANUAL ()
static unsigned int instancesNumber ()

Protected Member Functions

 Service (const ValueList &params)
virtual ~Service ()

Private Attributes

bool _forked

Static Private Attributes

static unsigned int _instancesNumber
static unsigned int _forkedInstancesNumber

Detailed Description

template<class T>
class Service< T >

Definition at line 23 of file Service.h.


Constructor & Destructor Documentation

template<class T>
Service< T >::Service ( const ValueList params  )  [protected]

Definition at line 123 of file Service.h.

References Service< T >::_instancesNumber.

template<class T>
Service< T >::~Service (  )  [protected, virtual]

Definition at line 130 of file Service.h.

References Service< T >::_forked, Service< T >::_forkedInstancesNumber, Service< T >::_instancesNumber, ServiceBase::_params, and ValueList::clean().


Member Function Documentation

template<class T>
T * Service< T >::spawn ( const ValueList params = ValueList()  )  [static]

Definition at line 61 of file Service.h.

References CLASS_NAME(), CSTRING(), ERROR, ERROR_BACKTRACE(), FAILED(), and MSG_OBJECT_CANNOT_CREATE.

Referenced by Init::Init().

template<class T>
ServiceBase * Service< T >::fork (  )  [virtual]

Implements ServiceBase.

Definition at line 80 of file Service.h.

References Service< T >::_forkedInstancesNumber, ServiceBase::_params, CLASS_NAME(), CSTRING(), EMIT, ERROR, ERROR_BACKTRACE(), FAILED(), and MSG_OBJECT_CANNOT_CREATE.

template<class T>
String Service< T >::NAME (  )  [static]

Reimplemented in Browser, FSh, Inetd, Init, Syslogd, and Test.

Definition at line 103 of file Service.h.

template<class T>
String Service< T >::MANUAL (  )  [static]

Reimplemented in Browser, FSh, Inetd, Init, Syslogd, and Test.

Definition at line 109 of file Service.h.

template<class T>
unsigned int Service< T >::instancesNumber (  )  [static]

Definition at line 115 of file Service.h.

References Service< T >::_instancesNumber.


Member Data Documentation

template<class T>
unsigned int Service< T >::_instancesNumber [static, private]

Definition at line 45 of file Service.h.

Referenced by Service< T >::instancesNumber(), Service< T >::Service(), and Service< T >::~Service().

template<class T>
unsigned int Service< T >::_forkedInstancesNumber [static, private]

Definition at line 46 of file Service.h.

Referenced by Service< T >::fork(), and Service< T >::~Service().

template<class T>
bool Service< T >::_forked [private]

Definition at line 47 of file Service.h.

Referenced by Service< T >::~Service().


The documentation for this class was generated from the following file:
Generated on Thu Sep 6 20:13:50 2007 for Pylon Application Platform by  doxygen 1.5.1