| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/controls/controlmodexmlparser.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "controlmodeprofilepart.h"cxx . . $ `<file>/src/core/components/controls/controlmodeprofilepart.h`/ |
| 7 | #include "core/profilepartxmlparser.h"cxx . . $ `<file>/src/core/profilepartxmlparser.h`/ |
| 8 | #include <memory> |
| 9 | #include <pugixml.hpp> |
| 10 | #include <string> |
| 11 | #include <string_view> |
| 12 | #include <unordered_map> |
| 13 | |
| 14 | class ControlModeXMLParsercxx . . $ ControlModeXMLParser# |
| 15 | : public ProfilePartXMLParsercxx . . $ ProfilePartXMLParser# |
| 16 | , public ControlModeProfilePartcxx . . $ ControlModeProfilePart#::Exportercxx . . $ ControlModeProfilePart#Exporter# |
| 17 | , public ControlModeProfilePartcxx . . $ ControlModeProfilePart#::Importercxx . . $ ControlModeProfilePart#Importer# |
| 18 | { |
| 19 | public: |
| 20 | ControlModeXMLParsercxx . . $ ControlModeXMLParser#ControlModeXMLParser(c6e332c41c54746f).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# id) noexcept; |
| 21 | |
| 22 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> factorycxx . . $ ControlModeXMLParser#factory(543373651c38a5a4).( |
| 23 | IProfilePartXMLParserProvidercxx . . $ IProfilePartXMLParserProvider# const &profilePartParserProvider) override; |
| 24 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> initializercxx . . $ ControlModeXMLParser#initializer(6b4e1016740e578).() override; |
| 25 | |
| 26 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 27 | provideExportercxx . . $ ControlModeXMLParser#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) final override; |
| 28 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 29 | provideImportercxx . . $ ControlModeXMLParser#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) final override; |
| 30 | |
| 31 | void takeActivecxx . . $ ControlModeXMLParser#takeActive(b45ddcbc8423892c).(bool active) final override; |
| 32 | bool provideActivecxx . . $ ControlModeXMLParser#provideActive(50ce9a9e25b4a850).() const final override; |
| 33 | |
| 34 | void takeModecxx . . $ ControlModeXMLParser#takeMode(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &mode) final override; |
| 35 | stdcxx . . $ std/::stringcxx . . $ std/string# const &provideModecxx . . $ ControlModeXMLParser#provideMode(f4fff0029955a25f).() const final override; |
| 36 | |
| 37 | void appendTocxx . . $ ControlModeXMLParser#appendTo(9a62add8cbc6c333).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# &parentNode) final override; |
| 38 | |
| 39 | protected: |
| 40 | void resetAttributescxx . . $ ControlModeXMLParser#resetAttributes(49f6e7a06ebc5aa8).() final override; |
| 41 | void loadPartFromcxx . . $ ControlModeXMLParser#loadPartFrom(ad773084382c4c72).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# const &parentNode) override; |
| 42 | |
| 43 | void loadComponentscxx . . $ ControlModeXMLParser#loadComponents(ad773084382c4c72).(pugicxx . . $ pugi/::xml_nodecxx . . $ pugi/xml_node# const &parentNode); |
| 44 | bool activeDefaultcxx . . $ ControlModeXMLParser#activeDefault(50ce9a9e25b4a850).() const; |
| 45 | stdcxx . . $ std/::stringcxx . . $ std/string# const &modeDefaultcxx . . $ ControlModeXMLParser#modeDefault(f4fff0029955a25f).() const; |
| 46 | |
| 47 | private: |
| 48 | class Factorycxx . . $ ControlModeXMLParser#Factory#; |
| 49 | class Initializercxx . . $ ControlModeXMLParser#Initializer#; |
| 50 | |
| 51 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartXMLParsercxx . . $ IProfilePartXMLParser#>> parsers_cxx . . $ ControlModeXMLParser#parsers_.; |
| 52 | |
| 53 | bool active_cxx . . $ ControlModeXMLParser#active_.; |
| 54 | bool activeDefault_cxx . . $ ControlModeXMLParser#activeDefault_.; |
| 55 | |
| 56 | stdcxx . . $ std/::stringcxx . . $ std/string# mode_cxx . . $ ControlModeXMLParser#mode_.; |
| 57 | stdcxx . . $ std/::stringcxx . . $ std/string# modeDefault_cxx . . $ ControlModeXMLParser#modeDefault_.; |
| 58 | }; |