George Liu | 7f41a0d | 2024-08-28 16:49:06 +0800 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include <functional> | ||||
4 | #include <map> | ||||
5 | #include <string> | ||||
6 | #include <vector> | ||||
7 | |||||
8 | namespace phosphor::virtual_sensor | ||||
9 | { | ||||
10 | |||||
11 | using Interface = std::string; | ||||
12 | using CalculationFunc = std::function<double(std::vector<double>&)>; | ||||
13 | extern std::map<Interface, CalculationFunc> calculationIfaces; | ||||
14 | |||||
15 | } // namespace phosphor::virtual_sensor |