Debian Codegraph @

src/core/components/controls/noopprofilepart.h

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