Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
trace_api_plugin.hpp
Go to the documentation of this file.
1#pragma once
5
6namespace sysio {
10 class trace_api_plugin : public appbase::plugin<trace_api_plugin> {
11 public:
13
15 virtual ~trace_api_plugin();
16
17 virtual void set_program_options(appbase::options_description& cli, appbase::options_description& cfg) override;
18
19 void plugin_initialize(const appbase::variables_map& options);
20 void plugin_startup();
21 void plugin_shutdown();
22
23 void handle_sighup() override;
24
25 private:
26 std::shared_ptr<struct trace_api_plugin_impl> my;
27 std::shared_ptr<struct trace_api_rpc_plugin_impl> rpc;
28 };
29
33 class trace_api_rpc_plugin : public appbase::plugin<trace_api_rpc_plugin> {
34 public:
36
38 virtual ~trace_api_rpc_plugin();
39
40 virtual void set_program_options(appbase::options_description& cli, appbase::options_description& cfg) override;
41
42 void plugin_initialize(const appbase::variables_map& options);
43 void plugin_startup();
44 void plugin_shutdown();
45
46 void handle_sighup() override;
47
48 private:
49 std::shared_ptr<struct trace_api_rpc_plugin_impl> rpc;
50 };
51}
void plugin_initialize(const appbase::variables_map &options)
virtual void set_program_options(appbase::options_description &cli, appbase::options_description &cfg) override
APPBASE_PLUGIN_REQUIRES((chain_plugin)(http_plugin)) trace_api_plugin()
void plugin_initialize(const appbase::variables_map &options)
virtual void set_program_options(appbase::options_description &cli, appbase::options_description &cfg) override
#define APPBASE_PLUGIN_REQUIRES(PLUGINS)
Definition plugin.hpp:11
void cli()