Line data Source code
1 :
2 : #include "client_multiton.hpp"
3 : #include "client_tcp.hpp"
4 : #include "client_tcp_config_json.hpp"
5 : #include <wfc/module/multiton.hpp>
6 : #include <wfc/module/instance.hpp>
7 : #include <wfc/name.hpp>
8 :
9 : namespace wfc{ namespace io{
10 :
11 : namespace
12 : {
13 0 : WFC_NAME2(object_name, "client-tcp")
14 :
15 0 : class impl: public ::wfc::multiton<
16 : object_name,
17 : ::wfc::instance<client_tcp>,
18 : client_tcp_config_json
19 : >
20 : {
21 0 : virtual std::string interface_name() const override
22 : {
23 0 : return std::string("wfc::iinterface");
24 : }
25 :
26 0 : virtual std::string description() const override
27 : {
28 0 : return "TCP client";
29 : }
30 : };
31 : }
32 :
33 0 : client_multiton::client_multiton()
34 0 : : component( std::make_shared<impl>() )
35 0 : {}
36 :
37 3 : }}
|