Debian Codegraph @

src/core/components/controls/amd/pm/auto/pmautoprofilepart.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include "core/profilepart.h"
7 #include "pmauto.h"
8 #include <string>
9
10 namespace AMD {
11
12 class PMAutoProfilePart final
13 : public ProfilePart
14 , public AMD::PMAuto::Importer
15 {
16 public:
17 class Importer : public IProfilePart::Importer
18 {
19 };
20
21 class Exporter : public IProfilePart::Exporter
22 {
23 };
24
25 PMAutoProfilePart() noexcept;
26
27 std::unique_ptr<Exportable::Exporter>
28 factory(IProfilePartProvider const &profilePartProvider) override;
29 std::unique_ptr<Exportable::Exporter> initializer() override;
30
31 std::string const &ID() const final override;
32
33 std::optional<std::reference_wrapper<Importable::Importer>>
34 provideImporter(Item const &i) override;
35
36 bool provideActive() const override;
37
38 protected:
39 void importProfilePart(IProfilePart::Importer &i) override;
40 void exportProfilePart(IProfilePart::Exporter &e) const override;
41 std::unique_ptr<IProfilePart> cloneProfilePart() const override;
42
43 private:
44 class Initializer;
45
46 std::string const id_;
47
48 static bool const registered_;
49 };
50
51 } // namespace AMD