Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::test_control_plugin Class Reference

#include <test_control_plugin.hpp>

Inheritance diagram for sysio::test_control_plugin:
Collaboration diagram for sysio::test_control_plugin:

Public Member Functions

 test_control_plugin ()
 
 test_control_plugin (const test_control_plugin &)=delete
 
 test_control_plugin (test_control_plugin &&)=delete
 
test_control_pluginoperator= (const test_control_plugin &)=delete
 
test_control_pluginoperator= (test_control_plugin &&)=delete
 
virtual ~test_control_plugin () override=default
 
virtual void set_program_options (options_description &cli, options_description &cfg) override
 
void plugin_initialize (const variables_map &options)
 
void plugin_startup ()
 
void plugin_shutdown ()
 
test_control_apis::read_write get_read_write_api () const
 
- Public Member Functions inherited from appbase::plugin< test_control_plugin >
 plugin ()
 
virtual ~plugin ()
 
virtual state get_state () const override
 
virtual const std::string & name () const override
 
virtual void register_dependencies ()
 
virtual void initialize (const variables_map &options) override
 
virtual void handle_sighup () override
 
virtual void startup () override
 
virtual void shutdown () override
 
- Public Member Functions inherited from appbase::abstract_plugin
virtual ~abstract_plugin ()
 

Additional Inherited Members

- Public Types inherited from appbase::abstract_plugin
enum  state { registered , initialized , started , stopped }
 
- Protected Member Functions inherited from appbase::plugin< test_control_plugin >
 plugin (const string &name)
 

Detailed Description

Definition at line 38 of file test_control_plugin.hpp.

Constructor & Destructor Documentation

◆ test_control_plugin() [1/3]

sysio::test_control_plugin::test_control_plugin ( )
default

◆ test_control_plugin() [2/3]

sysio::test_control_plugin::test_control_plugin ( const test_control_plugin & )
delete

◆ test_control_plugin() [3/3]

sysio::test_control_plugin::test_control_plugin ( test_control_plugin && )
delete

◆ ~test_control_plugin()

virtual sysio::test_control_plugin::~test_control_plugin ( )
overridevirtualdefault

Member Function Documentation

◆ get_read_write_api()

test_control_apis::read_write sysio::test_control_plugin::get_read_write_api ( ) const
inline

Definition at line 54 of file test_control_plugin.hpp.

54{ return test_control_apis::read_write(my); }

◆ operator=() [1/2]

test_control_plugin & sysio::test_control_plugin::operator= ( const test_control_plugin & )
delete

◆ operator=() [2/2]

test_control_plugin & sysio::test_control_plugin::operator= ( test_control_plugin && )
delete

◆ plugin_initialize()

void sysio::test_control_plugin::plugin_initialize ( const variables_map & options)

Definition at line 112 of file test_control_plugin.cpp.

112 {
113}

◆ plugin_shutdown()

void sysio::test_control_plugin::plugin_shutdown ( )

Definition at line 121 of file test_control_plugin.cpp.

121 {
122 my->disconnect();
123 ilog("test_control_plugin shutting down");
124}
#define ilog(FORMAT,...)
Definition logger.hpp:118

◆ plugin_startup()

void sysio::test_control_plugin::plugin_startup ( )

Definition at line 115 of file test_control_plugin.cpp.

115 {
116 ilog("test_control_plugin starting up");
117 my.reset(new test_control_plugin_impl(app().get_plugin<chain_plugin>().chain()));
118 my->connect();
119}
application & app()
Here is the call graph for this function:

◆ set_program_options()

void sysio::test_control_plugin::set_program_options ( options_description & cli,
options_description & cfg )
overridevirtual

Implements appbase::abstract_plugin.

Definition at line 109 of file test_control_plugin.cpp.

109 {
110}

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