ClanLib  2.3.7
List of all members
CL_Service Class Referenceabstract

Service/daemon class. More...

#include <service.h>

Public Member Functions

Construction
 CL_Service (const CL_String &service_name)
 Constructs a service object. More...
 
 ~CL_Service ()
 
Attributes
const CL_Stringget_service_name () const
 Returns the service name. More...
 

Operations

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

Implementation

class CL_Service_Impl
 

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 ( )
protectedpure virtual

Called when the service is asked to reload its configuration.

virtual void CL_Service::service_start ( std::vector< CL_String > &  args)
protectedpure virtual

Called when the service is asked to start.

virtual void CL_Service::service_stop ( )
protectedpure 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: