Line data Source code
1 : //
2 : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2018
3 : //
4 : // Copyright: See COPYING file that comes with this distribution
5 : //
6 :
7 : #pragma once
8 :
9 : #include "client_tcp_config.hpp"
10 : #include <iow/ip/tcp/client/options_json.hpp>
11 : #include <wfc/workflow.hpp>
12 : #include <wfc/json.hpp>
13 :
14 : namespace wfc{ namespace io{
15 :
16 : struct client_tcp_config_json
17 : {
18 0 : JSON_NAME(rn)
19 0 : JSON_NAME(abort_if_error)
20 0 : JSON_NAME(startup_pool)
21 0 : JSON_NAME(primary_pool)
22 0 : JSON_NAME(secondary_pool)
23 :
24 : typedef json::object<
25 : client_tcp_config,
26 : json::member_list<
27 : json::member<n_startup_pool, client_tcp_config, size_t, &client_tcp_config::startup_pool>,
28 : json::member<n_primary_pool, client_tcp_config, size_t, &client_tcp_config::primary_pool>,
29 : json::member<n_secondary_pool, client_tcp_config, size_t, &client_tcp_config::secondary_pool>,
30 : json::member<n_abort_if_error, client_tcp_config, bool, &client_tcp_config::abort_if_error>,
31 : json::member<n_rn, client_tcp_config, bool, &client_tcp_config::rn>,
32 : json::base< ::iow::ip::tcp::client::options_json >
33 : >
34 : > type;
35 :
36 : typedef type::target target;
37 : typedef type::serializer serializer;
38 : typedef type::member_list member_list;
39 : };
40 :
41 : }}
|