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 "demo_multiton.hpp"
9 : #include "demo_domain.hpp"
10 : #include "demo_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{
17 :
18 : namespace {
19 :
20 0 : WFC_NAME2(object_name, "demo-storage")
21 :
22 0 : class impl: public ::wfc::multiton<
23 : object_name,
24 : wfc::instance<storage_domain>,
25 : storage_config_json
26 : >
27 : {
28 : };
29 :
30 : }
31 0 : storage_multiton::storage_multiton()
32 0 : : component( std::make_shared<impl>() )
33 : {
34 0 : }
35 :
36 3 : }
|