Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
http_client_plugin.hpp
Go to the documentation of this file.
1#pragma once
4
5namespace sysio {
6 using namespace appbase;
7 using fc::http_client;
8
9 class http_client_plugin : public appbase::plugin<http_client_plugin>
10 {
11 public:
13 virtual ~http_client_plugin();
14
16 virtual void set_program_options(options_description&, options_description& cfg) override;
17
18 void plugin_initialize(const variables_map& options);
19 void plugin_startup();
20 void plugin_shutdown();
21
23 return *my;
24 }
25
26 private:
27 std::unique_ptr<http_client> my;
28 };
29
30}
virtual void set_program_options(options_description &, options_description &cfg) override
void plugin_initialize(const variables_map &options)
#define APPBASE_PLUGIN_REQUIRES(PLUGINS)
Definition plugin.hpp:11