| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/controls/cpu/cpufreqxmlparser.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "core/profilepartxmlparser.h"cxx . . $ `<file>/src/core/profilepartxmlparser.h`/ |
| 7 | #include "cpufreqprofilepart.h"cxx . . $ `<file>/src/core/components/controls/cpu/cpufreqprofilepart.h`/ |
| 8 | #include <optional> |
| 9 | #include <string> |
| 10 | |
| 11 | class CPUFreqXMLParsercxx . . $ CPUFreqXMLParser# final |
| 12 | : public ProfilePartXMLParsercxx . . $ ProfilePartXMLParser# |
| 13 | , public CPUFreqProfilePartcxx . . $ CPUFreqProfilePart#::Exportercxx . . $ CPUFreqProfilePart#Exporter# |
| 14 | , public CPUFreqProfilePartcxx . . $ CPUFreqProfilePart#::Importercxx . . $ CPUFreqProfilePart#Importer# |
| 15 | { |
| 16 | public: |
| 17 | CPUFreqXMLParsercxx . . $ CPUFreqXMLParser#CPUFreqXMLParser(ced63f7c635d850d).() noexcept; |
| 18 | |
| 19 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> factorycxx . . $ CPUFreqXMLParser#factory(543373651c38a5a4).( |
| 20 | IProfilePartXMLParserProvidercxx . . $ IProfilePartXMLParserProvider# const &profilePartParserProvider) override; |
| 21 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> initializercxx . . $ CPUFreqXMLParser#initializer(6b4e1016740e578).() override; |
| 22 | |
| 23 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 24 | provideExportercxx . . $ CPUFreqXMLParser#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) override; |
| 25 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 26 | provideImportercxx . . $ CPUFreqXMLParser#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) override; |
| 27 | |
| 28 | void takeActivecxx . . $ CPUFreqXMLParser#takeActive(b45ddcbc8423892c).(bool active) override; |
| 29 | bool provideActivecxx . . $ CPUFreqXMLParser#provideActive(50ce9a9e25b4a850).() const override; |
| 30 | |
| 31 | void takeCPUFreqScalingGovernorcxx . . $ CPUFreqXMLParser#takeCPUFreqScalingGovernor(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &governor) override; |
| 32 | stdcxx . . $ std/::stringcxx . . $ std/string# const &provideCPUFreqScalingGovernorcxx . . $ CPUFreqXMLParser#provideCPUFreqScalingGovernor(f4fff0029955a25f).() const override; |
| 33 | |
| 34 | void takeCPUFreqEPPHintcxx . . $ CPUFreqXMLParser#takeCPUFreqEPPHint(d049417f242f31d7).(stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &hint) override; |
| 35 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &provideCPUFreqEPPHintcxx . . $ CPUFreqXMLParser#provideCPUFreqEPPHint(f34183478aa9387b).() const override; |
| 36 | |
| 37 | void appendTocxx . . $ CPUFreqXMLParser#appendTo(9a62add8cbc6c333).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# &parentNode) override; |
| 38 | |
| 39 | protected: |
| 40 | void resetAttributescxx . . $ CPUFreqXMLParser#resetAttributes(49f6e7a06ebc5aa8).() override; |
| 41 | void loadPartFromcxx . . $ CPUFreqXMLParser#loadPartFrom(ad773084382c4c72).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# const &parentNode) override; |
| 42 | |
| 43 | private: |
| 44 | class Initializercxx . . $ CPUFreqXMLParser#Initializer#; |
| 45 | |
| 46 | stdcxx . . $ std/::stringcxx . . $ std/string# const id_cxx . . $ CPUFreqXMLParser#id_.; |
| 47 | |
| 48 | bool active_cxx . . $ CPUFreqXMLParser#active_.; |
| 49 | bool activeDefault_cxx . . $ CPUFreqXMLParser#activeDefault_.; |
| 50 | |
| 51 | stdcxx . . $ std/::stringcxx . . $ std/string# scalingGovernor_cxx . . $ CPUFreqXMLParser#scalingGovernor_.; |
| 52 | stdcxx . . $ std/::stringcxx . . $ std/string# scalingGovernorDefault_cxx . . $ CPUFreqXMLParser#scalingGovernorDefault_.; |
| 53 | |
| 54 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> eppHint_cxx . . $ CPUFreqXMLParser#eppHint_.; |
| 55 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> eppHintDefault_cxx . . $ CPUFreqXMLParser#eppHintDefault_.; |
| 56 | |
| 57 | static bool const registered_cxx . . $ CPUFreqXMLParser#registered_.; |
| 58 | }; |