| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/gpuxmlparser.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 "igpuprofilepart.h"cxx . . $ `<file>/src/core/components/igpuprofilepart.h`/ |
| 8 | #include <memory> |
| 9 | #include <optional> |
| 10 | #include <pugixml.hpp> |
| 11 | #include <string> |
| 12 | #include <unordered_map> |
| 13 | |
| 14 | class IProfilePartXMLParserProvidercxx . . $ IProfilePartXMLParserProvider#; |
| 15 | |
| 16 | class GPUXMLParsercxx . . $ GPUXMLParser# final |
| 17 | : public ProfilePartXMLParsercxx . . $ ProfilePartXMLParser# |
| 18 | , public IGPUProfilePartcxx . . $ IGPUProfilePart#::Exportercxx . . $ IGPUProfilePart#Exporter# |
| 19 | , public IGPUProfilePartcxx . . $ IGPUProfilePart#::Importercxx . . $ IGPUProfilePart#Importer# |
| 20 | { |
| 21 | public: |
| 22 | GPUXMLParsercxx . . $ GPUXMLParser#GPUXMLParser(ced63f7c635d850d).() noexcept; |
| 23 | |
| 24 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> factorycxx . . $ GPUXMLParser#factory(543373651c38a5a4).( |
| 25 | IProfilePartXMLParserProvidercxx . . $ IProfilePartXMLParserProvider# const &profilePartParserProvider) override; |
| 26 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> initializercxx . . $ GPUXMLParser#initializer(6b4e1016740e578).() override; |
| 27 | |
| 28 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 29 | provideExportercxx . . $ GPUXMLParser#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) override; |
| 30 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 31 | provideImportercxx . . $ GPUXMLParser#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) override; |
| 32 | |
| 33 | void takeActivecxx . . $ GPUXMLParser#takeActive(b45ddcbc8423892c).(bool active) override; |
| 34 | bool provideActivecxx . . $ GPUXMLParser#provideActive(50ce9a9e25b4a850).() const override; |
| 35 | |
| 36 | void takeIndexcxx . . $ GPUXMLParser#takeIndex(d4f767463ce0a6b3).(int index) override; |
| 37 | int provideIndexcxx . . $ GPUXMLParser#provideIndex(455f465bc33b4cdf).() const override; |
| 38 | |
| 39 | void takeDeviceIDcxx . . $ GPUXMLParser#takeDeviceID(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &deviceID) override; |
| 40 | stdcxx . . $ std/::stringcxx . . $ std/string# const &provideDeviceIDcxx . . $ GPUXMLParser#provideDeviceID(f4fff0029955a25f).() const override; |
| 41 | |
| 42 | void takeRevisioncxx . . $ GPUXMLParser#takeRevision(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &revision) override; |
| 43 | stdcxx . . $ std/::stringcxx . . $ std/string# const &provideRevisioncxx . . $ GPUXMLParser#provideRevision(f4fff0029955a25f).() const override; |
| 44 | |
| 45 | void takeUniqueIDcxx . . $ GPUXMLParser#takeUniqueID(f63fdbbff1c7c15e).(stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> uniqueID) override; |
| 46 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> provideUniqueIDcxx . . $ GPUXMLParser#provideUniqueID(5ce91bc52c9d8e1).() const override; |
| 47 | |
| 48 | void appendTocxx . . $ GPUXMLParser#appendTo(9a62add8cbc6c333).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# &parentNode) override; |
| 49 | |
| 50 | protected: |
| 51 | void resetAttributescxx . . $ GPUXMLParser#resetAttributes(49f6e7a06ebc5aa8).() override; |
| 52 | void loadPartFromcxx . . $ GPUXMLParser#loadPartFrom(ad773084382c4c72).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# const &parentNode) override; |
| 53 | |
| 54 | private: |
| 55 | class Factorycxx . . $ GPUXMLParser#Factory#; |
| 56 | class Initializercxx . . $ GPUXMLParser#Initializer#; |
| 57 | |
| 58 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartXMLParsercxx . . $ IProfilePartXMLParser#>> parsers_cxx . . $ GPUXMLParser#parsers_.; |
| 59 | |
| 60 | bool active_cxx . . $ GPUXMLParser#active_.; |
| 61 | bool activeDefault_cxx . . $ GPUXMLParser#activeDefault_.; |
| 62 | |
| 63 | stdcxx . . $ std/::stringcxx . . $ std/string# deviceID_cxx . . $ GPUXMLParser#deviceID_.; |
| 64 | stdcxx . . $ std/::stringcxx . . $ std/string# deviceIDDefault_cxx . . $ GPUXMLParser#deviceIDDefault_.; |
| 65 | stdcxx . . $ std/::stringcxx . . $ std/string# revision_cxx . . $ GPUXMLParser#revision_.; |
| 66 | stdcxx . . $ std/::stringcxx . . $ std/string# revisionDefault_cxx . . $ GPUXMLParser#revisionDefault_.; |
| 67 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> uniqueID_cxx . . $ GPUXMLParser#uniqueID_.; |
| 68 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> uniqueIDDefault_cxx . . $ GPUXMLParser#uniqueIDDefault_.; |
| 69 | int index_cxx . . $ GPUXMLParser#index_.; |
| 70 | int indexDefault_cxx . . $ GPUXMLParser#indexDefault_.; |
| 71 | |
| 72 | static bool const registered_cxx . . $ GPUXMLParser#registered_.; |
| 73 | }; |