| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/controls/noopprofilepart.cpp`/ |
| 2 | // Copyright 2021 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include "noopprofilepart.h"cxx . . $ `<file>/src/core/components/controls/noopprofilepart.h`/ |
| 5 | |
| 6 | #include "core/profilepartprovider.h"cxx . . $ `<file>/src/core/profilepartprovider.h`/ |
| 7 | #include <memory> |
| 8 | |
| 9 | class NoopProfilePartcxx . . $ NoopProfilePart#::Initializercxx . . $ NoopProfilePart#Initializer# final : public Noopcxx . . $ Noop#::Exportercxx . . $ IControl#Exporter# |
| 10 | { |
| 11 | public: |
| 12 | Initializercxx . . $ NoopProfilePart#Initializer#Initializer(391e22f854787fbb).(NoopProfilePartcxx . . $ NoopProfilePart# &outer) noexcept |
| 13 | : outer_cxx . . $ NoopProfilePart#Initializer#outer_.(outer) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 18 | provideExportercxx . . $ NoopProfilePart#Initializer#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &) override |
| 19 | { |
| 20 | return {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 21 | } |
| 22 | |
| 23 | void takeActivecxx . . $ NoopProfilePart#Initializer#takeActive(b45ddcbc8423892c).(bool active) override; |
| 24 | |
| 25 | private: |
| 26 | NoopProfilePartcxx . . $ NoopProfilePart# &outer_cxx . . $ NoopProfilePart#Initializer#outer_.; |
| 27 | }; |
| 28 | |
| 29 | void NoopProfilePartcxx . . $ NoopProfilePart#::Initializercxx . . $ NoopProfilePart#Initializer#::takeActivecxx . . $ NoopProfilePart#Initializer#takeActive(b45ddcbc8423892c).(bool active) |
| 30 | { |
| 31 | outer_cxx . . $ NoopProfilePart#Initializer#outer_..activatecxx . . $ ProfilePart#activate(b45ddcbc8423892c).(active); |
| 32 | } |
| 33 | |
| 34 | NoopProfilePartcxx . . $ NoopProfilePart#::NoopProfilePartcxx . . $ NoopProfilePart#NoopProfilePart(ced63f7c635d850d).() noexcept |
| 35 | : id_cxx . . $ NoopProfilePart#id_.(Noopcxx . . $ Noop#::ItemIDcxx . . $ Noop#ItemID.) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> |
| 40 | NoopProfilePartcxx . . $ NoopProfilePart#::factorycxx . . $ NoopProfilePart#factory(af48dc8d4887b70c).(IProfilePartProvidercxx . . $ IProfilePartProvider# const &) |
| 41 | { |
| 42 | return nullptrcxx . . $ std/unique_ptr#unique_ptr(6d988fd07f070dfc).; |
| 43 | } |
| 44 | |
| 45 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> NoopProfilePartcxx . . $ NoopProfilePart#::initializercxx . . $ NoopProfilePart#initializer(6b4e1016740e578).() |
| 46 | { |
| 47 | return stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<NoopProfilePartcxx . . $ NoopProfilePart#::Initializercxx . . $ NoopProfilePart#Initializer#>(*this); |
| 48 | } |
| 49 | |
| 50 | stdcxx . . $ std/::stringcxx . . $ std/string# const &NoopProfilePartcxx . . $ NoopProfilePart#::IDcxx . . $ NoopProfilePart#ID(f4fff0029955a25f).() const |
| 51 | { |
| 52 | return id_cxx . . $ NoopProfilePart#id_.; |
| 53 | } |
| 54 | |
| 55 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 56 | NoopProfilePartcxx . . $ NoopProfilePart#::provideImportercxx . . $ NoopProfilePart#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &) |
| 57 | { |
| 58 | return {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 59 | } |
| 60 | |
| 61 | bool NoopProfilePartcxx . . $ NoopProfilePart#::provideActivecxx . . $ NoopProfilePart#provideActive(50ce9a9e25b4a850).() const |
| 62 | { |
| 63 | return activecxx . . $ ProfilePart#active(50ce9a9e25b4a850).(); |
| 64 | } |
| 65 | |
| 66 | void NoopProfilePartcxx . . $ NoopProfilePart#::importProfilePartcxx . . $ NoopProfilePart#importProfilePart(d62b6a6dfe9fe695).(IProfilePartcxx . . $ IProfilePart#::Importercxx . . $ IProfilePart#Importer# &) |
| 67 | { |
| 68 | } |
| 69 | |
| 70 | void NoopProfilePartcxx . . $ NoopProfilePart#::exportProfilePartcxx . . $ NoopProfilePart#exportProfilePart(702e13e8794d0da4).(IProfilePartcxx . . $ IProfilePart#::Exportercxx . . $ IProfilePart#Exporter# &) const |
| 71 | { |
| 72 | } |
| 73 | |
| 74 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#> NoopProfilePartcxx . . $ NoopProfilePart#::cloneProfilePartcxx . . $ NoopProfilePart#cloneProfilePart(1378fcc1caef3e7b).() const |
| 75 | { |
| 76 | return stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<NoopProfilePartcxx . . $ NoopProfilePart#>(); |
| 77 | } |
| 78 | |
| 79 | bool const NoopProfilePartcxx . . $ NoopProfilePart#::registered_cxx . . $ NoopProfilePart#registered_. = ProfilePartProvidercxx . . $ ProfilePartProvider#::registerProvidercxx . . $ ProfilePartProvider#registerProvider(f190789c485b6dcd).( |
| 80 | Noopcxx . . $ std/basic_string_view#basic_string_view(b419d9def655ef02).::ItemIDcxx . . $ Noop#ItemID., [cxx . . $ std/function#function(bdc3712e480e4d04).]() { return stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<NoopProfilePartcxx . . $ NoopProfilePart#>(); }); |