Line data Source code
1 :
2 : #include "config_module.hpp"
3 : #include "config/config_singleton.hpp"
4 : #include <wfc/module/component_list.hpp>
5 : #include <wfc/name.hpp>
6 :
7 : namespace wfc{ namespace core{
8 :
9 : namespace {
10 :
11 0 : WFC_NAME2(module_name, "config")
12 :
13 0 : class impl: public ::wfc::component_list
14 : <
15 : module_name,
16 : config_singleton
17 : >
18 : {
19 0 : virtual std::string description() const override
20 : {
21 0 : return "Оne-component module";
22 : }
23 : };
24 :
25 : }
26 :
27 0 : config_module::config_module()
28 0 : : module( std::make_shared<impl>() )
29 0 : {}
30 :
31 3 : }}
|