| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/profileview.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "exportable.h"cxx . . $ `<file>/src/core/exportable.h`/ |
| 7 | #include "iprofile.h"cxx . . $ `<file>/src/core/iprofile.h`/ |
| 8 | #include "iprofilepartview.h"cxx . . $ `<file>/src/core/iprofilepartview.h`/ |
| 9 | #include "iprofileview.h"cxx . . $ `<file>/src/core/iprofileview.h`/ |
| 10 | #include <functional> |
| 11 | #include <memory> |
| 12 | #include <optional> |
| 13 | #include <string> |
| 14 | #include <vector> |
| 15 | |
| 16 | class ProfileViewcxx . . $ ProfileView# final : public IProfileViewcxx . . $ IProfileView# |
| 17 | { |
| 18 | public: |
| 19 | stdcxx . . $ std/::stringcxx . . $ std/string# const &namecxx . . $ ProfileView#name(f4fff0029955a25f).() const override; |
| 20 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartViewcxx . . $ IProfilePartView#>> const &partscxx . . $ ProfileView#parts(695fa8b7727f8f8b).() const override; |
| 21 | |
| 22 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 23 | provideImportercxx . . $ ProfileView#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) override; |
| 24 | |
| 25 | class Initializercxx . . $ ProfileView#Initializer# : public IProfilecxx . . $ IProfile#::Exportercxx . . $ IProfile#Exporter# |
| 26 | { |
| 27 | public: |
| 28 | Initializercxx . . $ ProfileView#Initializer#Initializer(c80d60c748f5e9e9).(ProfileViewcxx . . $ ProfileView# &profileView, |
| 29 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<IProfileViewcxx . . $ IProfileView#>> base = |
| 30 | stdcxx . . $ std/optional#optional(eb2253fdec8870b5).::nulloptcxx . . $ std/nullopt.) noexcept; |
| 31 | |
| 32 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 33 | provideExportercxx . . $ ProfileView#Initializer#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) override; |
| 34 | |
| 35 | void takeActivecxx . . $ ProfileView#Initializer#takeActive(b45ddcbc8423892c).(bool active) override; |
| 36 | void takeInfocxx . . $ ProfileView#Initializer#takeInfo(7a3f345cc6258353).(IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &info) override; |
| 37 | |
| 38 | private: |
| 39 | ProfileViewcxx . . $ ProfileView# &profileView_cxx . . $ ProfileView#Initializer#profileView_.; |
| 40 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<IProfileViewcxx . . $ IProfileView#>> base_cxx . . $ ProfileView#Initializer#base_.; |
| 41 | }; |
| 42 | |
| 43 | private: |
| 44 | stdcxx . . $ std/::stringcxx . . $ std/string# name_cxx . . $ ProfileView#name_.; |
| 45 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartViewcxx . . $ IProfilePartView#>> parts_cxx . . $ ProfileView#parts_.; |
| 46 | }; |