Line data Source code
1 :
2 : #include "server_udp_multiton.hpp"
3 : #include <wfc/module/multiton.hpp>
4 : #include <wfc/module/instance.hpp>
5 : #include "server_udp.hpp"
6 : #include "server_udp_config_json.hpp"
7 : #include <wfc/name.hpp>
8 : #include <memory>
9 :
10 : namespace wfc{ namespace io{
11 :
12 : namespace
13 : {
14 0 : WFC_NAME2(component_name, "server-udp")
15 :
16 0 : class impl: public ::wfc::multiton<
17 : component_name,
18 : ::wfc::instance<server_udp>,
19 : server_udp_config_json,
20 : component_features::EnableCPU
21 : | component_features::DisabledWorkflow
22 : >
23 : {
24 0 : virtual std::string interface_name() const override
25 : {
26 0 : return std::string("");
27 : }
28 :
29 0 : virtual std::string description() const override
30 : {
31 0 : return "UDP server";
32 : }
33 : };
34 : }
35 :
36 0 : server_udp_multiton::server_udp_multiton()
37 0 : : component( std::make_shared< impl>() )
38 0 : {}
39 :
40 3 : }}
|