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 "tank_multiton.hpp"
9 : #include "tank.hpp"
10 : #include "tank_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, "pingpong-tank")
21 :
22 0 : class impl: public ::wfc::multiton<
23 : object_name,
24 : wfc::instance<tank>,
25 : tank_config_json
26 : >
27 : {};
28 : }
29 :
30 0 : tank_multiton::tank_multiton()
31 0 : : component( std::make_shared<impl>() )
32 : {
33 0 : }
34 :
35 3 : }}
|