| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/profilepartxmlparserprovider.cpp`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include "profilepartxmlparserprovider.h"cxx . . $ `<file>/src/core/profilepartxmlparserprovider.h`/ |
| 5 | |
| 6 | #include <utility> |
| 7 | |
| 8 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, |
| 9 | stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartXMLParsercxx . . $ IProfilePartXMLParser#>()>> const & |
| 10 | ProfilePartXMLParserProvidercxx . . $ ProfilePartXMLParserProvider#::profilePartParserProviderscxx . . $ ProfilePartXMLParserProvider#profilePartParserProviders(e70311e3611c41c6).() const |
| 11 | { |
| 12 | return profilePartParserProviders_cxx . . $ ProfilePartXMLParserProvider#profilePartParserProviders_(fb3db264cb99573b).(); |
| 13 | } |
| 14 | |
| 15 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, |
| 16 | stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartXMLParsercxx . . $ IProfilePartXMLParser#>()>> & |
| 17 | ProfilePartXMLParserProvidercxx . . $ ProfilePartXMLParserProvider#::profilePartParserProviders_cxx . . $ ProfilePartXMLParserProvider#profilePartParserProviders_(fb3db264cb99573b).() |
| 18 | { |
| 19 | static stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#< |
| 20 | stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartXMLParsercxx . . $ IProfilePartXMLParser#>()>> |
| 21 | providerscxx . . $ std/unordered_map#unordered_map(49f6e7a06ebc5aa8).; |
| 22 | return providers; |
| 23 | } |
| 24 | |
| 25 | bool ProfilePartXMLParserProvidercxx . . $ ProfilePartXMLParserProvider#::registerProvidercxx . . $ ProfilePartXMLParserProvider#registerProvider(1a5cc5494db8b601).( |
| 26 | stdcxx . . $ std/::string_viewcxx . . $ std/string_view# componentID, |
| 27 | stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartXMLParsercxx . . $ IProfilePartXMLParser#>()> &&provider) |
| 28 | { |
| 29 | profilePartParserProviders_cxx . . $ ProfilePartXMLParserProvider#profilePartParserProviders_(fb3db264cb99573b).().emplacecxx . . $ std/unordered_map#emplace(8e800962ae7274b6).(stdcxx . . $ std/::stringcxx . . $ std/string#(componentID), |
| 30 | stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(provider)); |
| 31 | return true; |
| 32 | } |