| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/sensors/graphitemprofilepart.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "core/profilepart.h"cxx . . $ `<file>/src/core/profilepart.h`/ |
| 7 | #include <string> |
| 8 | #include <string_view> |
| 9 | |
| 10 | class GraphItemProfilePartcxx . . $ GraphItemProfilePart# : public ProfilePartcxx . . $ ProfilePart# |
| 11 | { |
| 12 | public: |
| 13 | class Importercxx . . $ GraphItemProfilePart#Importer# : public IProfilePartcxx . . $ IProfilePart#::Importercxx . . $ IProfilePart#Importer# |
| 14 | { |
| 15 | public: |
| 16 | virtual stdcxx . . $ std/::stringcxx . . $ std/string# const &provideColorcxx . . $ GraphItemProfilePart#Importer#provideColor(f4fff0029955a25f).() const = 0; |
| 17 | }; |
| 18 | |
| 19 | class Exportercxx . . $ GraphItemProfilePart#Exporter# : public IProfilePartcxx . . $ IProfilePart#::Exportercxx . . $ IProfilePart#Exporter# |
| 20 | { |
| 21 | public: |
| 22 | virtual void takeColorcxx . . $ GraphItemProfilePart#Exporter#takeColor(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &color) = 0; |
| 23 | }; |
| 24 | |
| 25 | GraphItemProfilePartcxx . . $ GraphItemProfilePart#GraphItemProfilePart(62297a3c612b74f).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# id, stdcxx . . $ std/::string_viewcxx . . $ std/string_view# color) noexcept; |
| 26 | |
| 27 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> |
| 28 | factorycxx . . $ GraphItemProfilePart#factory(af48dc8d4887b70c).(IProfilePartProvidercxx . . $ IProfilePartProvider# const &profilePartProvider) override; |
| 29 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#> initializercxx . . $ GraphItemProfilePart#initializer(6b4e1016740e578).() override; |
| 30 | |
| 31 | stdcxx . . $ std/::stringcxx . . $ std/string# const &IDcxx . . $ GraphItemProfilePart#ID(f4fff0029955a25f).() const override; |
| 32 | |
| 33 | protected: |
| 34 | void importProfilePartcxx . . $ GraphItemProfilePart#importProfilePart(d62b6a6dfe9fe695).(IProfilePartcxx . . $ IProfilePart#::Importercxx . . $ IProfilePart#Importer# &i) override; |
| 35 | void exportProfilePartcxx . . $ GraphItemProfilePart#exportProfilePart(702e13e8794d0da4).(IProfilePartcxx . . $ IProfilePart#::Exportercxx . . $ IProfilePart#Exporter# &e) const override; |
| 36 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IProfilePartcxx . . $ IProfilePart#> cloneProfilePartcxx . . $ GraphItemProfilePart#cloneProfilePart(1378fcc1caef3e7b).() const override; |
| 37 | |
| 38 | private: |
| 39 | stdcxx . . $ std/::stringcxx . . $ std/string# id_cxx . . $ GraphItemProfilePart#id_.; |
| 40 | stdcxx . . $ std/::stringcxx . . $ std/string# color_cxx . . $ GraphItemProfilePart#color_.; |
| 41 | }; |