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