| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/icpu.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "core/isyscomponent.h"cxx . . $ `<file>/src/core/isyscomponent.h`/ |
| 7 | #include <string_view> |
| 8 | |
| 9 | class ICPUInfocxx . . $ ICPUInfo#; |
| 10 | class ISensorcxx . . $ ISensor#; |
| 11 | |
| 12 | class ICPUcxx . . $ ICPU# : public ISysComponentcxx . . $ ISysComponent# |
| 13 | { |
| 14 | public: |
| 15 | static constexpr stdcxx . . $ std/::string_viewcxx . . $ std/string_view# ItemIDcxx . . $ ICPU#ItemID.{"CPU"}; |
| 16 | |
| 17 | class Exportercxx . . $ ICPU#Exporter# : public ISysComponentcxx . . $ ISysComponent#::Exportercxx . . $ ISysComponent#Exporter# |
| 18 | { |
| 19 | public: |
| 20 | virtual void takeInfocxx . . $ ICPU#Exporter#takeInfo(b148e3110650f661).(ICPUInfocxx . . $ ICPUInfo# const &info) = 0; |
| 21 | virtual void takeSensorcxx . . $ ICPU#Exporter#takeSensor(73745a8c6f82d10e).(ISensorcxx . . $ ISensor# const &sensor) = 0; |
| 22 | }; |
| 23 | |
| 24 | virtual ICPUInfocxx . . $ ICPUInfo# const &infocxx . . $ ICPU#info(95bebdd3f04fe09b).() const = 0; |
| 25 | |
| 26 | virtual ~cxx . . $ ICPU#`~ICPU`(ced63f7c635d850d).ICPUcxx . . $ ICPU#() = default; |
| 27 | }; |