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 : #include "demo_module.hpp"
8 : #include "domain/demo_multiton.hpp"
9 : #include "service/demo_service_multiton.hpp"
10 : #include "gateway/demo_gateway_multiton.hpp"
11 : #include <wfc/module/component_list.hpp>
12 : #include <wfc/name.hpp>
13 :
14 : namespace demo{
15 :
16 0 : WFC_NAME2(storage_module_name, "demo-storage")
17 :
18 0 : class storage_module::impl: public ::wfc::component_list<
19 : storage_module_name,
20 : storage_multiton,
21 : storage_service_multiton,
22 : storage_gateway_multiton
23 : >
24 : {
25 0 : virtual std::string description() const override
26 : {
27 0 : return "Demo-storage module description";
28 : }
29 : };
30 :
31 0 : storage_module::storage_module()
32 0 : : module( std::make_shared<storage_module::impl>() )
33 : {
34 0 : }
35 :
36 3 : }
|