Service/daemon class. More...

#include <service.h>

Public Member Functions

 Service (const std::string &service_name)
 Constructs a service object. More...
 
 ~Service ()
 
const std::stringget_service_name () const
 Returns the service name. More...
 
int main (int argc, char **argv)
 Process command line and run service. More...
 

Protected Member Functions

virtual void service_reload ()=0
 Called when the service is asked to reload its configuration. More...
 
virtual void service_start (std::vector< std::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...
 

Friends

class Service_Impl
 

Detailed Description

Service/daemon class.

Constructor & Destructor Documentation

clan::Service::Service ( const std::string service_name)

Constructs a service object.

clan::Service::~Service ( )

Member Function Documentation

const std::string& clan::Service::get_service_name ( ) const

Returns the service name.

int clan::Service::main ( int  argc,
char **  argv 
)

Process command line and run service.

virtual void clan::Service::service_reload ( )
protectedpure virtual

Called when the service is asked to reload its configuration.

virtual void clan::Service::service_start ( std::vector< std::string > &  args)
protectedpure virtual

Called when the service is asked to start.

virtual void clan::Service::service_stop ( )
protectedpure virtual

Called when the service is asked to stop.

Friends And Related Function Documentation

friend class Service_Impl
friend

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