| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/profilexmlparser.cpp`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include "profilexmlparser.h"cxx . . $ `<file>/src/core/profilexmlparser.h`/ |
| 5 | |
| 6 | #include "iprofile.h"cxx . . $ `<file>/src/core/iprofile.h`/ |
| 7 | #include "isyscomponentprofilepart.h"cxx . . $ `<file>/src/core/isyscomponentprofilepart.h`/ |
| 8 | #include <algorithm> |
| 9 | #include <cctype> |
| 10 | #include <pugixml.hpp> |
| 11 | #include <spdlog/spdlog.h> |
| 12 | #include <utility> |
| 13 | |
| 14 | ProfileXMLParsercxx . . $ ProfileXMLParser#::Factorycxx . . $ ProfileXMLParser#Factory#::Factorycxx . . $ ProfileXMLParser#Factory#Factory(7468dab75b18173c).( |
| 15 | IProfilePartXMLParserProvidercxx . . $ IProfilePartXMLParserProvider# const &profilePartParserProvider, |
| 16 | ProfileXMLParsercxx . . $ ProfileXMLParser# &outer) noexcept |
| 17 | : ProfilePartXMLParsercxx . . $ ProfilePartXMLParser#::Factorycxx . . $ ProfilePartXMLParser#Factory#(profilePartParserProvider) |
| 18 | , outer_cxx . . $ ProfileXMLParser#Factory#outer_.(outer) |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | void ProfileXMLParsercxx . . $ ProfileXMLParser#::Factorycxx . . $ ProfileXMLParser#Factory#::takePartParsercxx . . $ ProfileXMLParser#Factory#takePartParser(4ce663d5ecbeb887).( |
| 23 | Itemcxx . . $ Item# const &i, stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartXMLParsercxx . . $ IProfilePartXMLParser#> &&part) |
| 24 | { |
| 25 | auto &key = dynamic_cast<ISysComponentProfilePartcxx . . $ ISysComponentProfilePart# const &>(i).keycxx . . $ ISysComponentProfilePart#key(f4fff0029955a25f).(); |
| 26 | outer_cxx . . $ ProfileXMLParser#Factory#outer_..parsers_cxx . . $ ProfileXMLParser#parsers_..emplacecxx . . $ std/unordered_map#emplace(8e800962ae7274b6).(key, stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(part)); |
| 27 | } |
| 28 | |
| 29 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 30 | ProfileXMLParsercxx . . $ ProfileXMLParser#::Factorycxx . . $ ProfileXMLParser#Factory#::provideExportercxx . . $ ProfileXMLParser#Factory#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) |
| 31 | { |
| 32 | if (i.IDcxx . . $ Item#ID(f4fff0029955a25f).() == IProfilecxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02).::ItemIDcxx . . $ IProfile#ItemID.) |
| 33 | return *cxx . . $ std/optional#optional(e3f0d6382bd52f24).this; |
| 34 | else |
| 35 | return factorycxx . . $ ProfilePartXMLParser#Factory#factory(3acccbde2694e33a).(i); |
| 36 | } |
| 37 | |
| 38 | class ProfileXMLParsercxx . . $ ProfileXMLParser#::Initializercxx . . $ ProfileXMLParser#Initializer# final : public IProfilecxx . . $ IProfile#::Exportercxx . . $ IProfile#Exporter# |
| 39 | { |
| 40 | public: |
| 41 | Initializercxx . . $ ProfileXMLParser#Initializer#Initializer(471e48bd6f5e0826).(ProfileXMLParsercxx . . $ ProfileXMLParser# &outer) noexcept |
| 42 | : outer_cxx . . $ ProfileXMLParser#Initializer#outer_.(outer) |
| 43 | { |
| 44 | } |
| 45 | |
| 46 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 47 | provideExportercxx . . $ ProfileXMLParser#Initializer#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) override; |
| 48 | |
| 49 | void takeActivecxx . . $ ProfileXMLParser#Initializer#takeActive(b45ddcbc8423892c).(bool active) override; |
| 50 | void takeInfocxx . . $ ProfileXMLParser#Initializer#takeInfo(7a3f345cc6258353).(IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &info) override; |
| 51 | |
| 52 | private: |
| 53 | ProfileXMLParsercxx . . $ ProfileXMLParser# &outer_cxx . . $ ProfileXMLParser#Initializer#outer_.; |
| 54 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> initializers_cxx . . $ ProfileXMLParser#Initializer#initializers_.; |
| 55 | }; |
| 56 | |
| 57 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 58 | ProfileXMLParsercxx . . $ ProfileXMLParser#::Initializercxx . . $ ProfileXMLParser#Initializer#::provideExportercxx . . $ ProfileXMLParser#Initializer#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) |
| 59 | { |
| 60 | auto &id = i.IDcxx . . $ Item#ID(f4fff0029955a25f).(); |
| 61 | if (id == IProfilecxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02).::ItemIDcxx . . $ IProfile#ItemID.) |
| 62 | return *cxx . . $ std/optional#optional(e3f0d6382bd52f24).this; |
| 63 | else { |
| 64 | auto &key = dynamic_cast<ISysComponentProfilePartcxx . . $ ISysComponentProfilePart# const &>(i).keycxx . . $ ISysComponentProfilePart#key(f4fff0029955a25f).(); |
| 65 | if (initializers_cxx . . $ ProfileXMLParser#Initializer#initializers_..countcxx . . $ std/unordered_map#count(b71ff106d381144b).(key) > 0) |
| 66 | return *cxx . . $ std/optional#optional(e3f0d6382bd52f24).initializers_cxx . . $ ProfileXMLParser#Initializer#initializers_..atcxx . . $ std/unordered_map#at(4f10b6009f0ee734).(key); |
| 67 | else if (outer_cxx . . $ ProfileXMLParser#Initializer#outer_..parsers_cxx . . $ ProfileXMLParser#parsers_..countcxx . . $ std/unordered_map#count(b71ff106d381144b).(key) > 0) { |
| 68 | auto initializer = outer_cxx . . $ ProfileXMLParser#Initializer#outer_..parsers_cxx . . $ ProfileXMLParser#parsers_..atcxx . . $ std/unordered_map#at(4f10b6009f0ee734).(key)->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).initializercxx . . $ IProfilePartXMLParser#initializer(6b4e1016740e578).(); |
| 69 | if (initializer != nullptr) { |
| 70 | initializers_cxx . . $ ProfileXMLParser#Initializer#initializers_..emplacecxx . . $ std/unordered_map#emplace(8e800962ae7274b6).(key, stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(initializer)); |
| 71 | return *cxx . . $ std/optional#optional(e3f0d6382bd52f24).initializers_cxx . . $ ProfileXMLParser#Initializer#initializers_..atcxx . . $ std/unordered_map#at(4f10b6009f0ee734).(key); |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | return {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 77 | } |
| 78 | |
| 79 | void ProfileXMLParsercxx . . $ ProfileXMLParser#::Initializercxx . . $ ProfileXMLParser#Initializer#::takeActivecxx . . $ ProfileXMLParser#Initializer#takeActive(b45ddcbc8423892c).(bool active) |
| 80 | { |
| 81 | outer_cxx . . $ ProfileXMLParser#Initializer#outer_..active_cxx . . $ ProfileXMLParser#active_. = outer_cxx . . $ ProfileXMLParser#Initializer#outer_..activeDefault_cxx . . $ ProfileXMLParser#activeDefault_. = active; |
| 82 | } |
| 83 | |
| 84 | void ProfileXMLParsercxx . . $ ProfileXMLParser#::Initializercxx . . $ ProfileXMLParser#Initializer#::takeInfocxx . . $ ProfileXMLParser#Initializer#takeInfo(7a3f345cc6258353).(IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &info) |
| 85 | { |
| 86 | outer_cxx . . $ ProfileXMLParser#Initializer#outer_..info_cxx . . $ ProfileXMLParser#info_. =cxx . . $ IProfile#Info#`operator=`(2bd26973b47a6d10). outer_cxx . . $ ProfileXMLParser#Initializer#outer_..infoDefault_cxx . . $ ProfileXMLParser#infoDefault_. =cxx . . $ IProfile#Info#`operator=`(2bd26973b47a6d10). info; |
| 87 | } |
| 88 | |
| 89 | ProfileXMLParsercxx . . $ ProfileXMLParser#::ProfileXMLParsercxx . . $ ProfileXMLParser#ProfileXMLParser(ced63f7c635d850d).() noexcept |
| 90 | : format_cxx . . $ ProfileXMLParser#format_.("xml") |
| 91 | { |
| 92 | profileNodeName_cxx . . $ ProfileXMLParser#profileNodeName_. =cxx . . $ std/__cxx11/basic_string#`operator=`(d07e3dd77f70328a). IProfilecxx . . $ IProfile#::ItemIDcxx . . $ IProfile#ItemID.; |
| 93 | stdcxx . . $ std/::transformcxx . . $ std/transform(da30451c4a040264).(profileNodeName_cxx . . $ ProfileXMLParser#profileNodeName_..cbegincxx . . $ std/__cxx11/basic_string#cbegin(a865d278ca20c908).(), profileNodeName_cxx . . $ ProfileXMLParser#profileNodeName_..cendcxx . . $ std/__cxx11/basic_string#cend(a865d278ca20c908).(), |
| 94 | profileNodeName_cxx . . $ ProfileXMLParser#profileNodeName_..begincxx . . $ std/__cxx11/basic_string#begin(fd29ebd65481b919).(), ::toupper); |
| 95 | } |
| 96 | |
| 97 | stdcxx . . $ std/::stringcxx . . $ std/string# const &ProfileXMLParsercxx . . $ ProfileXMLParser#::formatcxx . . $ ProfileXMLParser#format(319d84e01067f75d).() |
| 98 | { |
| 99 | return format_cxx . . $ ProfileXMLParser#format_.; |
| 100 | } |
| 101 | |
| 102 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> ProfileXMLParsercxx . . $ ProfileXMLParser#::initializercxx . . $ ProfileXMLParser#initializer(6b4e1016740e578).() |
| 103 | { |
| 104 | return stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<ProfileXMLParsercxx . . $ ProfileXMLParser#::Initializercxx . . $ ProfileXMLParser#Initializer#>(*this); |
| 105 | } |
| 106 | |
| 107 | bool ProfileXMLParsercxx . . $ ProfileXMLParser#::loadcxx . . $ ProfileXMLParser#load(3950ab7b6b62e024).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> const &data, IProfilecxx . . $ IProfile# &profile) |
| 108 | { |
| 109 | pugicxx . . $ pugi/::xml_documentcxx . . $ pugi/xml_document# doccxx . . $ pugi/xml_document#xml_document(49f6e7a06ebc5aa8).; |
| 110 | auto status = doc.load_buffercxx . . $ pugi/xml_document#load_buffer(518c74e7940a8c16).(data.datacxx . . $ std/vector#data(8e614c7de0b1573e).(), data.sizecxx . . $ std/vector#size(c9b1e749b64d5edc).()); |
| 111 | if (status) { |
| 112 | auto profileNode = doc.childcxx . . $ pugi/xml_node#child(19545ac55d8e08f4).(profileNodeName_cxx . . $ ProfileXMLParser#profileNodeName_..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()); |
| 113 | if (!profileNode.emptycxx . . $ pugi/xml_node#empty(50ce9a9e25b4a850).()) { |
| 114 | |
| 115 | auto active = profileNode.attributecxx . . $ pugi/xml_node#attribute(760b1819de0561d9).("active"); |
| 116 | auto name = profileNode.attributecxx . . $ pugi/xml_node#attribute(760b1819de0561d9).("name"); |
| 117 | auto exe = profileNode.attributecxx . . $ pugi/xml_node#attribute(760b1819de0561d9).("exe"); |
| 118 | |
| 119 | active_cxx . . $ ProfileXMLParser#active_. = active.as_boolcxx . . $ pugi/xml_attribute#as_bool(962fae8be55e1d9).(activeDefault_cxx . . $ ProfileXMLParser#activeDefault_.); |
| 120 | info_cxx . . $ ProfileXMLParser#info_..namecxx . . $ IProfile#Info#name. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). name.as_stringcxx . . $ pugi/xml_attribute#as_string(865ea18671f48fc1).(infoDefault_cxx . . $ ProfileXMLParser#infoDefault_..namecxx . . $ IProfile#Info#name..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()); |
| 121 | info_cxx . . $ ProfileXMLParser#info_..execxx . . $ IProfile#Info#exe. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). exe.as_stringcxx . . $ pugi/xml_attribute#as_string(865ea18671f48fc1).(infoDefault_cxx . . $ ProfileXMLParser#infoDefault_..execxx . . $ IProfile#Info#exe..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()); |
| 122 | |
| 123 | for (auto &[key, component] : parsers_cxx . . $ ProfileXMLParser#parsers_.) |
| 124 | component->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).loadFromcxx . . $ IProfilePartXMLParser#loadFrom(ad773084382c4c72).(profileNode); |
| 125 | |
| 126 | profile.importWithcxx . . $ Importable#importWith(94eddebf9440278).(*this); |
| 127 | return true; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | SPDLOG_DEBUGcxx . . $ `<external>/13613935168682455490/spdlog.h:311:13`!("Cannot parse xml data for profile {}.\nError: {}", |
| 132 | profile.info().name, status.description()); |
| 133 | |
| 134 | return false; |
| 135 | } |
| 136 | |
| 137 | class PugiXMLWritercxx . . $ PugiXMLWriter# final : public pugicxx . . $ pugi/::xml_writercxx . . $ pugi/xml_writer# |
| 138 | { |
| 139 | public: |
| 140 | PugiXMLWritercxx . . $ PugiXMLWriter#PugiXMLWriter(9b90bd03a2f133a1).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> &data) |
| 141 | : data_cxx . . $ PugiXMLWriter#data_.(data) |
| 142 | { |
| 143 | data.clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 144 | } |
| 145 | void writecxx . . $ PugiXMLWriter#write(8c7266571c1d65cc).(const void *data, size_t size) override |
| 146 | { |
| 147 | auto start = data_cxx . . $ PugiXMLWriter#data_..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).(); |
| 148 | data_cxx . . $ PugiXMLWriter#data_..resizecxx . . $ std/vector#resize(2c44cd906ae4e829).(start + size); |
| 149 | memcpy(&data_cxx . . $ PugiXMLWriter#data_.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).start], data, size * sizeof(char)); |
| 150 | } |
| 151 | |
| 152 | private: |
| 153 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> &data_cxx . . $ PugiXMLWriter#data_.; |
| 154 | }; |
| 155 | |
| 156 | bool ProfileXMLParsercxx . . $ ProfileXMLParser#::savecxx . . $ ProfileXMLParser#save(751860f9352cffff).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<char> &data, IProfilecxx . . $ IProfile# const &profile) |
| 157 | { |
| 158 | profile.exportWithcxx . . $ Exportable#exportWith(5b5c94ff60635419).(*this); |
| 159 | |
| 160 | pugicxx . . $ pugi/::xml_documentcxx . . $ pugi/xml_document# doccxx . . $ pugi/xml_document#xml_document(49f6e7a06ebc5aa8).; |
| 161 | auto profileNode = doc.append_childcxx . . $ pugi/xml_node#append_child(625782b904aa9aa5).(profileNodeName_cxx . . $ ProfileXMLParser#profileNodeName_..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()); |
| 162 | profileNode.append_attributecxx . . $ pugi/xml_node#append_attribute(ebf82b7b6f96d3a9).("active") =cxx . . $ pugi/xml_attribute#`operator=`(e4ef2dfcdb6b654d). active_cxx . . $ ProfileXMLParser#active_.; |
| 163 | profileNode.append_attributecxx . . $ pugi/xml_node#append_attribute(ebf82b7b6f96d3a9).("name") =cxx . . $ pugi/xml_attribute#`operator=`(e97dd6b1417bcd5a). info_cxx . . $ ProfileXMLParser#info_..namecxx . . $ IProfile#Info#name..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).(); |
| 164 | profileNode.append_attributecxx . . $ pugi/xml_node#append_attribute(ebf82b7b6f96d3a9).("exe") =cxx . . $ pugi/xml_attribute#`operator=`(e97dd6b1417bcd5a). info_cxx . . $ ProfileXMLParser#info_..execxx . . $ IProfile#Info#exe..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).(); |
| 165 | |
| 166 | for (auto &[key, component] : parsers_cxx . . $ ProfileXMLParser#parsers_.) |
| 167 | component->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).appendTocxx . . $ IProfilePartXMLParser#appendTo(9a62add8cbc6c333).(profileNode); |
| 168 | |
| 169 | PugiXMLWritercxx . . $ PugiXMLWriter# writercxx . . $ PugiXMLWriter#PugiXMLWriter(9b90bd03a2f133a1).(data); |
| 170 | doc.savecxx . . $ pugi/xml_document#save(210ef26f4deb2c78).(writer); |
| 171 | |
| 172 | return true; |
| 173 | } |
| 174 | |
| 175 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 176 | ProfileXMLParsercxx . . $ ProfileXMLParser#::provideExportercxx . . $ ProfileXMLParser#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) |
| 177 | { |
| 178 | if (i.IDcxx . . $ Item#ID(f4fff0029955a25f).() == IProfilecxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02).::ItemIDcxx . . $ IProfile#ItemID.) |
| 179 | return *cxx . . $ std/optional#optional(e3f0d6382bd52f24).this; |
| 180 | |
| 181 | auto &key = dynamic_cast<ISysComponentProfilePartcxx . . $ ISysComponentProfilePart# const &>(i).keycxx . . $ ISysComponentProfilePart#key(f4fff0029955a25f).(); |
| 182 | auto const iter = parsers_cxx . . $ ProfileXMLParser#parsers_..findcxx . . $ std/unordered_map#find(f711f2f81556fe93).(key); |
| 183 | if (iter != parsers_cxx . . $ ProfileXMLParser#parsers_..cendcxx . . $ std/unordered_map#cend(f3c6e12ee1fe7252).()) |
| 184 | return itercxx . . $ std/optional#optional(e3f0d6382bd52f24).->cxx . . $ std/__detail/_Node_iterator#`operator->`(35610babf8706b50).secondcxx . . $ std/pair#second.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).profilePartExportercxx . . $ IProfilePartXMLParser#profilePartExporter(611f04e96fb8b68a).(); |
| 185 | |
| 186 | return {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 187 | } |
| 188 | |
| 189 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 190 | ProfileXMLParsercxx . . $ ProfileXMLParser#::provideImportercxx . . $ ProfileXMLParser#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) |
| 191 | { |
| 192 | if (i.IDcxx . . $ Item#ID(f4fff0029955a25f).() == IProfilecxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02).::ItemIDcxx . . $ IProfile#ItemID.) |
| 193 | return *cxx . . $ std/optional#optional(e3f0d6382bd52f24).this; |
| 194 | |
| 195 | auto &key = dynamic_cast<ISysComponentProfilePartcxx . . $ ISysComponentProfilePart# const &>(i).keycxx . . $ ISysComponentProfilePart#key(f4fff0029955a25f).(); |
| 196 | auto const iter = parsers_cxx . . $ ProfileXMLParser#parsers_..findcxx . . $ std/unordered_map#find(f711f2f81556fe93).(key); |
| 197 | if (iter != parsers_cxx . . $ ProfileXMLParser#parsers_..cendcxx . . $ std/unordered_map#cend(f3c6e12ee1fe7252).()) |
| 198 | return itercxx . . $ std/optional#optional(e3f0d6382bd52f24).->cxx . . $ std/__detail/_Node_iterator#`operator->`(35610babf8706b50).secondcxx . . $ std/pair#second.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).profilePartImportercxx . . $ IProfilePartXMLParser#profilePartImporter(c6a8a54be61afbf2).(); |
| 199 | |
| 200 | return {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 201 | } |
| 202 | |
| 203 | void ProfileXMLParsercxx . . $ ProfileXMLParser#::takeActivecxx . . $ ProfileXMLParser#takeActive(b45ddcbc8423892c).(bool active) |
| 204 | { |
| 205 | active_cxx . . $ ProfileXMLParser#active_. = active; |
| 206 | } |
| 207 | |
| 208 | void ProfileXMLParsercxx . . $ ProfileXMLParser#::takeInfocxx . . $ ProfileXMLParser#takeInfo(7a3f345cc6258353).(IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &info) |
| 209 | { |
| 210 | info_cxx . . $ ProfileXMLParser#info_. =cxx . . $ IProfile#Info#`operator=`(2bd26973b47a6d10). info; |
| 211 | } |
| 212 | |
| 213 | bool ProfileXMLParsercxx . . $ ProfileXMLParser#::provideActivecxx . . $ ProfileXMLParser#provideActive(50ce9a9e25b4a850).() const |
| 214 | { |
| 215 | return active_cxx . . $ ProfileXMLParser#active_.; |
| 216 | } |
| 217 | |
| 218 | IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &ProfileXMLParsercxx . . $ ProfileXMLParser#::provideInfocxx . . $ ProfileXMLParser#provideInfo(ad075d653bfbbbea).() const |
| 219 | { |
| 220 | return info_cxx . . $ ProfileXMLParser#info_.; |
| 221 | } |