Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
test_control_plugin.hpp
Go to the documentation of this file.
1#pragma once
4#include <fc/variant.hpp>
5#include <memory>
6
7namespace fc { class variant; }
8
9namespace sysio {
10 using namespace appbase;
11 typedef std::shared_ptr<class test_control_plugin_impl> test_control_ptr;
12
13namespace test_control_apis {
14struct empty{};
15
33
34
35} // namespace test_control_apis
36
37
38class test_control_plugin : public plugin<test_control_plugin> {
39public:
41
45 test_control_plugin& operator=(const test_control_plugin&) = delete;
47 virtual ~test_control_plugin() override = default;
48
49 virtual void set_program_options(options_description& cli, options_description& cfg) override;
50 void plugin_initialize(const variables_map& options);
51 void plugin_startup();
52 void plugin_shutdown();
53
54 test_control_apis::read_write get_read_write_api() const { return test_control_apis::read_write(my); }
55
56private:
58};
59
60}
61
63FC_REFLECT(sysio::test_control_apis::read_write::kill_node_on_producer_params, (producer)(where_in_sequence)(based_on_lib) )
read_write(const test_control_ptr &test_control)
kill_node_on_producer_results kill_node_on_producer(const kill_node_on_producer_params &params) const
test_control_apis::read_write get_read_write_api() const
virtual void set_program_options(options_description &cli, options_description &cfg) override
void plugin_initialize(const variables_map &options)
namespace sysio::chain
Definition authority.cpp:3
@ read_write
std::shared_ptr< class test_control_plugin_impl > test_control_ptr
#define APPBASE_PLUGIN_REQUIRES(PLUGINS)
Definition plugin.hpp:11
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition reflect.hpp:311
unsigned int uint32_t
Definition stdint.h:126
Immutable except for fc::from_variant.
Definition name.hpp:43
void cli()