Service/daemon class.  
 More...
#include <service.h>
|  | 
|  | Service (const std::string &service_name) | 
|  | Constructs a service object. 
 | 
|  | 
|  | ~Service () | 
|  | 
| const std::string & | get_service_name () const | 
|  | Returns the service name. 
 | 
|  | 
| int | main (int argc, char **argv) | 
|  | Process command line and run service. 
 | 
|  | 
|  | 
| virtual void | service_reload ()=0 | 
|  | Called when the service is asked to reload its configuration. 
 | 
|  | 
| virtual void | service_start (std::vector< std::string > &args)=0 | 
|  | Called when the service is asked to start. 
 | 
|  | 
| virtual void | service_stop ()=0 | 
|  | Called when the service is asked to stop. 
 | 
|  | 
◆ Service()
      
        
          | clan::Service::Service | ( | const std::string & | service_name | ) |  | 
      
 
Constructs a service object. 
 
 
◆ ~Service()
      
        
          | clan::Service::~Service | ( |  | ) |  | 
      
 
 
◆ get_service_name()
      
        
          | const std::string & clan::Service::get_service_name | ( |  | ) | const | 
      
 
Returns the service name. 
 
 
◆ main()
      
        
          | int clan::Service::main | ( | int | argc, | 
        
          |  |  | char ** | argv ) | 
      
 
Process command line and run service. 
 
 
◆ service_reload()
  
  | 
        
          | virtual void clan::Service::service_reload | ( |  | ) |  |  | protectedpure virtual | 
 
Called when the service is asked to reload its configuration. 
 
 
◆ service_start()
  
  | 
        
          | virtual void clan::Service::service_start | ( | std::vector< std::string > & | args | ) |  |  | protectedpure virtual | 
 
Called when the service is asked to start. 
 
 
◆ service_stop()
  
  | 
        
          | virtual void clan::Service::service_stop | ( |  | ) |  |  | protectedpure virtual | 
 
Called when the service is asked to stop. 
 
 
◆ Service_Impl
  
  | 
        
          | friend class Service_Impl |  | friend | 
 
 
The documentation for this class was generated from the following file: