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 "statistics_gateway_multiton.hpp"
8 : #include "statistics_gateway.hpp"
9 :
10 : #include <wfc/module/multiton.hpp>
11 : #include <wfc/module/instance.hpp>
12 : #include <wfc/name.hpp>
13 :
14 : namespace wfc{ namespace core{
15 :
16 : namespace {
17 :
18 0 : WFC_NAME2(component_name, "statistics-gateway")
19 0 : class impl
20 : : public ::wfc::jsonrpc::gateway_multiton< component_name, statistics::gateway_method_list, statistics::gateway_interface>
21 : {
22 : public:
23 0 : virtual std::string interface_name() const override
24 : {
25 0 : return std::string("wfc::statistics::istatistics");
26 : }
27 :
28 0 : virtual std::string description() const override
29 : {
30 0 : return "Gateway for BTP system";
31 : }
32 : };
33 : }
34 :
35 0 : statistics_gateway_multiton::statistics_gateway_multiton()
36 0 : : wfc::component( std::make_shared<impl>() )
37 : {
38 0 : }
39 :
40 3 : }}
|