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
2
#include <
appbase/application.hpp
>
3
#include <
fc/network/http/http_client.hpp
>
4
5
namespace
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
:
12
http_client_plugin
();
13
virtual
~http_client_plugin
();
14
15
APPBASE_PLUGIN_REQUIRES
()
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
22
http_client
&
get_client
() {
23
return
*my;
24
}
25
26
private
:
27
std::unique_ptr<http_client> my;
28
};
29
30
}
application.hpp
appbase::plugin
Definition
plugin.hpp:48
fc::http_client
Definition
http_client.hpp:15
sysio::http_client_plugin
Definition
http_client_plugin.hpp:10
sysio::http_client_plugin::http_client_plugin
http_client_plugin()
Definition
http_client_plugin.cpp:8
sysio::http_client_plugin::get_client
http_client & get_client()
Definition
http_client_plugin.hpp:22
sysio::http_client_plugin::~http_client_plugin
virtual ~http_client_plugin()
Definition
http_client_plugin.cpp:9
sysio::http_client_plugin::set_program_options
virtual void set_program_options(options_description &, options_description &cfg) override
Definition
http_client_plugin.cpp:11
sysio::http_client_plugin::plugin_initialize
void plugin_initialize(const variables_map &options)
Definition
http_client_plugin.cpp:21
sysio::http_client_plugin::plugin_shutdown
void plugin_shutdown()
Definition
http_client_plugin.cpp:69
sysio::http_client_plugin::plugin_startup
void plugin_startup()
Definition
http_client_plugin.cpp:65
http_client.hpp
appbase
Definition
application.cpp:18
sysio
Definition
abi_serializer.cpp:8
APPBASE_PLUGIN_REQUIRES
#define APPBASE_PLUGIN_REQUIRES(PLUGINS)
Definition
plugin.hpp:11
plugins
http_client_plugin
include
sysio
http_client_plugin
http_client_plugin.hpp
Generated by
1.12.0