Line data Source code
1 : //
2 : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2015
3 : //
4 : // Copyright: See COPYING file that comes with this distribution
5 : //
6 :
7 :
8 : #include "pinger_multiton.hpp"
9 : #include "pinger.hpp"
10 : #include "pinger_config_json.hpp"
11 :
12 : #include <wfc/module/multiton.hpp>
13 : #include <wfc/module/instance.hpp>
14 : #include <wfc/name.hpp>
15 :
16 : namespace demo{ namespace pingpong{
17 :
18 : namespace
19 : {
20 0 : WFC_NAME2(object_name, "pinger")
21 :
22 0 : class impl: public ::wfc::multiton<
23 : object_name,
24 : wfc::instance<pinger>,
25 : pinger_config_json,
26 : wfc::component_features::IgnoreReconfigure
27 : >
28 : {
29 : };
30 : }
31 :
32 0 : pinger_multiton::pinger_multiton()
33 0 : : component( std::make_shared<impl>() )
34 : {
35 0 : }
36 :
37 3 : }}
|