Service/daemon class. More...
#include <service.h>
Public Member Functions | |
Construction | |
CL_Service (const CL_String &service_name) | |
Constructs a service object. | |
~CL_Service () | |
Attributes | |
const CL_String & | get_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. |
Service/daemon class.
CL_Service::CL_Service | ( | const CL_String & | service_name | ) |
Constructs a service object.
CL_Service::~CL_Service | ( | ) |
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.
friend class CL_Service_Impl [friend] |