Line data Source code
1 :
2 : #include "statlog_multiton.hpp"
3 : #include "statlog_domain.hpp"
4 : #include "statlog_config_json.hpp"
5 : #include <wfc/module/multiton.hpp>
6 : #include <wfc/module/instance.hpp>
7 : #include <wfc/name.hpp>
8 :
9 : namespace wfc{ namespace core{
10 :
11 : namespace {
12 :
13 0 : WFC_NAME2(object_name, "statistics-log")
14 :
15 0 : class impl: public ::wfc::multiton<
16 : object_name,
17 : ::wfc::instance<statlog_domain>,
18 : statlog_config_json,
19 : ::wfc::component_features::Defaults
20 : >
21 : {
22 : public:
23 0 : virtual std::string interface_name() const override
24 : {
25 0 : return std::string("ibtp");
26 : }
27 :
28 0 : virtual std::string description() const override
29 : {
30 0 : return "Write aggregated data into user log";
31 : }
32 : };
33 : }
34 :
35 0 : statlog_multiton::statlog_multiton()
36 0 : : component( std::make_shared<impl>() )
37 0 : {}
38 :
39 3 : }}
|