CL_Service Class Reference
[clanCore System]

Service/daemon class. More...

#include <service.h>

List of all members.

Public Member Functions

Construction

 CL_Service (const CL_String &service_name)
 Constructs a service object.
 ~CL_Service ()
Attributes

const CL_Stringget_service_name () const
 Returns the service name.

Implementation



class CL_Service_Impl

Operations



int main (int argc, char **argv)
 Process command line and run service.
virtual void service_start (std::vector< CL_String > &args)=0
 Called when the service is asked to start.
virtual void service_stop ()=0
 Called when the service is asked to stop.
virtual void service_reload ()=0
 Called when the service is asked to reload its configuration.

Detailed Description

Service/daemon class.


Constructor & Destructor Documentation

CL_Service::CL_Service ( const CL_String service_name  ) 

Constructs a service object.

CL_Service::~CL_Service (  ) 

Member Function Documentation

const CL_String& CL_Service::get_service_name (  )  const

Returns the service name.

int CL_Service::main ( int  argc,
char **  argv 
)

Process command line and run service.

virtual void CL_Service::service_reload (  )  [protected, pure virtual]

Called when the service is asked to reload its configuration.

virtual void CL_Service::service_start ( std::vector< CL_String > &  args  )  [protected, pure virtual]

Called when the service is asked to start.

virtual void CL_Service::service_stop (  )  [protected, pure virtual]

Called when the service is asked to stop.


Friends And Related Function Documentation

friend class CL_Service_Impl [friend]

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