| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/profile.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "iprofile.h"cxx . . $ `<file>/src/core/iprofile.h`/ |
| 7 | #include "iprofileview.h"cxx . . $ `<file>/src/core/iprofileview.h`/ |
| 8 | #include "isysmodel.h"cxx . . $ `<file>/src/core/isysmodel.h`/ |
| 9 | #include "profilepart.h"cxx . . $ `<file>/src/core/profilepart.h`/ |
| 10 | #include <memory> |
| 11 | #include <string> |
| 12 | #include <vector> |
| 13 | |
| 14 | class IProfilePartProvidercxx . . $ IProfilePartProvider#; |
| 15 | |
| 16 | class Profilecxx . . $ Profile# final |
| 17 | : public IProfilecxx . . $ IProfile# |
| 18 | , public IProfileViewcxx . . $ IProfileView#::Viewcxx . . $ IProfileView#View# |
| 19 | { |
| 20 | public: |
| 21 | Profilecxx . . $ Profile#Profile(ced63f7c635d850d).() noexcept; |
| 22 | |
| 23 | Profilecxx . . $ Profile#Profile(7f22761f36b9aa90).(Profilecxx . . $ Profile# const &) = delete; |
| 24 | Profilecxx . . $ Profile# &operatorcxx . . $ Profile#`operator=`(1c6e070ba2ba297).=(Profilecxx . . $ Profile# const &) = delete; |
| 25 | |
| 26 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> initializercxx . . $ Profile#initializer(6b4e1016740e578).() override; |
| 27 | |
| 28 | bool activecxx . . $ Profile#active(50ce9a9e25b4a850).() const override; |
| 29 | void activatecxx . . $ Profile#activate(b45ddcbc8423892c).(bool active) override; |
| 30 | |
| 31 | IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &infocxx . . $ Profile#info(ad075d653bfbbbea).() const override; |
| 32 | void infocxx . . $ Profile#info(7a3f345cc6258353).(IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# const &info) override; |
| 33 | |
| 34 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilecxx . . $ IProfile#> clonecxx . . $ Profile#clone(f422f8feab2476b6).() const override; |
| 35 | |
| 36 | stdcxx . . $ std/::stringcxx . . $ std/string# const &IDcxx . . $ Profile#ID(f4fff0029955a25f).() const override; |
| 37 | void importWithcxx . . $ Profile#importWith(94eddebf9440278).(Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer# &i) override; |
| 38 | void exportWithcxx . . $ Profile#exportWith(5b5c94ff60635419).(Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter# &e) const override; |
| 39 | |
| 40 | stdcxx . . $ std/::stringcxx . . $ std/string# const &namecxx . . $ Profile#name(f4fff0029955a25f).() const override; |
| 41 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IProfilePartcxx . . $ IProfilePart#>> const &partscxx . . $ Profile#parts(eb73fac8769a6fd1).() const override; |
| 42 | |
| 43 | class Factorycxx . . $ Profile#Factory# final |
| 44 | : public ProfilePartcxx . . $ ProfilePart#::Factorycxx . . $ ProfilePart#Factory# |
| 45 | , public ISysModelcxx . . $ ISysModel#::Exportercxx . . $ ISysModel#Exporter# |
| 46 | { |
| 47 | public: |
| 48 | Factorycxx . . $ Profile#Factory#Factory(81dab335255d20a5).(IProfilePartProvidercxx . . $ IProfilePartProvider# const &profilePartProvider, |
| 49 | Profilecxx . . $ Profile# &outer) noexcept; |
| 50 | |
| 51 | void takeProfilePartcxx . . $ Profile#Factory#takeProfilePart(8c7717026cb6ec4).(stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#> &&part) override; |
| 52 | |
| 53 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 54 | provideExportercxx . . $ Profile#Factory#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) override; |
| 55 | |
| 56 | private: |
| 57 | Profilecxx . . $ Profile# &outer_cxx . . $ Profile#Factory#outer_.; |
| 58 | }; |
| 59 | |
| 60 | private: |
| 61 | class Initializercxx . . $ Profile#Initializer#; |
| 62 | |
| 63 | stdcxx . . $ std/::stringcxx . . $ std/string# const id_cxx . . $ Profile#id_.; |
| 64 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<IProfilePartcxx . . $ IProfilePart#>> parts_cxx . . $ Profile#parts_.; |
| 65 | |
| 66 | IProfilecxx . . $ IProfile#::Infocxx . . $ IProfile#Info# info_cxx . . $ Profile#info_.; |
| 67 | bool active_cxx . . $ Profile#active_.{true}; |
| 68 | }; |