| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/profilepartprovider.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "iprofilepartprovider.h"cxx . . $ `<file>/src/core/iprofilepartprovider.h`/ |
| 7 | #include <functional> |
| 8 | #include <memory> |
| 9 | #include <string> |
| 10 | #include <string_view> |
| 11 | #include <unordered_map> |
| 12 | |
| 13 | class IProfilePartcxx . . $ IProfilePart#; |
| 14 | |
| 15 | class ProfilePartProvidercxx . . $ ProfilePartProvider# final : public IProfilePartProvidercxx . . $ IProfilePartProvider# |
| 16 | { |
| 17 | public: |
| 18 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#>()>> const & |
| 19 | profilePartProviderscxx . . $ ProfilePartProvider#profilePartProviders(ff6d5c41554e1765).() const override; |
| 20 | |
| 21 | static bool |
| 22 | registerProvidercxx . . $ ProfilePartProvider#registerProvider(f190789c485b6dcd).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# componentID, |
| 23 | stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#>()> &&provider); |
| 24 | |
| 25 | private: |
| 26 | static stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, |
| 27 | stdcxx . . $ std/::functioncxx . . $ std/function#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#>()>> & |
| 28 | profilePartProviders_cxx . . $ ProfilePartProvider#profilePartProviders_(67929b0a4c2c7b7f).(); |
| 29 | }; |