| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/cpuxmlparser.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 "icpuprofilepart.h"cxx . . $ `<file>/src/core/components/icpuprofilepart.h`/ |
| 8 | #include <memory> |
| 9 | #include <pugixml.hpp> |
| 10 | #include <string> |
| 11 | #include <unordered_map> |
| 12 | |
| 13 | class CPUXMLParsercxx . . $ CPUXMLParser# final |
| 14 | : public ProfilePartXMLParsercxx . . $ ProfilePartXMLParser# |
| 15 | , public ICPUProfilePartcxx . . $ ICPUProfilePart#::Exportercxx . . $ ICPUProfilePart#Exporter# |
| 16 | , public ICPUProfilePartcxx . . $ ICPUProfilePart#::Importercxx . . $ ICPUProfilePart#Importer# |
| 17 | { |
| 18 | public: |
| 19 | CPUXMLParsercxx . . $ CPUXMLParser#CPUXMLParser(ced63f7c635d850d).() noexcept; |
| 20 | |
| 21 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> factorycxx . . $ CPUXMLParser#factory(543373651c38a5a4).( |
| 22 | IProfilePartXMLParserProvidercxx . . $ IProfilePartXMLParserProvider# const &profilePartParserProvider) override; |
| 23 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> initializercxx . . $ CPUXMLParser#initializer(6b4e1016740e578).() override; |
| 24 | |
| 25 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 26 | provideExportercxx . . $ CPUXMLParser#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) override; |
| 27 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 28 | provideImportercxx . . $ CPUXMLParser#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) override; |
| 29 | |
| 30 | void takeActivecxx . . $ CPUXMLParser#takeActive(b45ddcbc8423892c).(bool active) override; |
| 31 | bool provideActivecxx . . $ CPUXMLParser#provideActive(50ce9a9e25b4a850).() const override; |
| 32 | |
| 33 | void takePhysicalIdcxx . . $ CPUXMLParser#takePhysicalId(d4f767463ce0a6b3).(int id) override; |
| 34 | int providePhysicalIdcxx . . $ CPUXMLParser#providePhysicalId(455f465bc33b4cdf).() const override; |
| 35 | |
| 36 | void appendTocxx . . $ CPUXMLParser#appendTo(9a62add8cbc6c333).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# &parentNode) override; |
| 37 | |
| 38 | protected: |
| 39 | void resetAttributescxx . . $ CPUXMLParser#resetAttributes(49f6e7a06ebc5aa8).() override; |
| 40 | void loadPartFromcxx . . $ CPUXMLParser#loadPartFrom(ad773084382c4c72).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# const &parentNode) override; |
| 41 | |
| 42 | private: |
| 43 | class Factorycxx . . $ CPUXMLParser#Factory#; |
| 44 | class Initializercxx . . $ CPUXMLParser#Initializer#; |
| 45 | |
| 46 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartXMLParsercxx . . $ IProfilePartXMLParser#>> parsers_cxx . . $ CPUXMLParser#parsers_.; |
| 47 | |
| 48 | bool active_cxx . . $ CPUXMLParser#active_.; |
| 49 | bool activeDefault_cxx . . $ CPUXMLParser#activeDefault_.; |
| 50 | |
| 51 | int physicalId_cxx . . $ CPUXMLParser#physicalId_.; |
| 52 | int physicalIdDefault_cxx . . $ CPUXMLParser#physicalIdDefault_.; |
| 53 | |
| 54 | static bool const registered_cxx . . $ CPUXMLParser#registered_.; |
| 55 | }; |