Scorum
block_info_plugin.hpp
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <scorum/app/plugin.hpp>
6 
7 #include <string>
8 #include <vector>
9 
10 namespace scorum {
11 namespace protocol {
12 struct signed_block;
13 }
14 }
15 
16 namespace scorum {
17 namespace plugin {
18 namespace block_info {
19 
21 
29 {
30 public:
32  virtual ~block_info_plugin();
33 
34  virtual std::string plugin_name() const override;
35  virtual void plugin_initialize(const boost::program_options::variables_map& options) override;
36  virtual void plugin_startup() override;
37  virtual void plugin_shutdown() override;
38 
40 
41  std::vector<block_info> _block_info;
42 
43  boost::signals2::scoped_connection _applied_block_conn;
44 };
45 }
46 }
47 }
application & app() const
Definition: plugin.hpp:119
virtual void plugin_shutdown() override
Cleanly shut down the plugin.
virtual void plugin_initialize(const boost::program_options::variables_map &options) override
Perform early startup routines and register plugin indexes, callbacks, etc.
virtual void plugin_startup() override
Begin normal runtime operations.
virtual std::string plugin_name() const override
void on_applied_block(const chain::signed_block &b)
boost::signals2::scoped_connection _applied_block_conn
Definition: asset.cpp:15