Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
appbase::abstract_plugin Class Referenceabstract

#include <plugin.hpp>

Inheritance diagram for appbase::abstract_plugin:

Public Types

enum  state { registered , initialized , started , stopped }
 

Public Member Functions

virtual ~abstract_plugin ()
 
virtual state get_state () const =0
 
virtual const std::string & name () const =0
 
virtual void set_program_options (options_description &cli, options_description &cfg)=0
 
virtual void initialize (const variables_map &options)=0
 
virtual void handle_sighup ()=0
 
virtual void startup ()=0
 
virtual void shutdown ()=0
 

Detailed Description

Definition at line 28 of file plugin.hpp.

Member Enumeration Documentation

◆ state

Enumerator
registered 

the plugin is constructed but doesn't do anything

initialized 

the plugin has initialized any state required but is idle

started 

the plugin is actively running

stopped 

the plugin is no longer running

Definition at line 30 of file plugin.hpp.

30 {
33 started,
34 stopped
35 };
@ stopped
the plugin is no longer running
Definition plugin.hpp:34
@ started
the plugin is actively running
Definition plugin.hpp:33
@ initialized
the plugin has initialized any state required but is idle
Definition plugin.hpp:32
@ registered
the plugin is constructed but doesn't do anything
Definition plugin.hpp:31

Constructor & Destructor Documentation

◆ ~abstract_plugin()

virtual appbase::abstract_plugin::~abstract_plugin ( )
inlinevirtual

Definition at line 37 of file plugin.hpp.

37{}

Member Function Documentation

◆ get_state()

◆ handle_sighup()

◆ initialize()

◆ name()

◆ set_program_options()

◆ shutdown()

◆ startup()


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