Debian Codegraph @

src/core/profilepartxmlparserprovider.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 "iprofilepartxmlparserprovider.h"
7 #include <functional>
8 #include <memory>
9 #include <string>
10 #include <string_view>
11 #include <unordered_map>
12
13 class IProfilePartXMLParser;
14
15 class ProfilePartXMLParserProvider final : public IProfilePartXMLParserProvider
16 {
17 public:
18 std::unordered_map<std::string,
19 std::function<std::unique_ptr<IProfilePartXMLParser>()>> const &
20 profilePartParserProviders() const override;
21
22 static bool registerProvider(
23 std::string_view componentID,
24 std::function<std::unique_ptr<IProfilePartXMLParser>()> &&provider);
25
26 private:
27 static std::unordered_map<
28 std::string, std::function<std::unique_ptr<IProfilePartXMLParser>()>> &
29 profilePartParserProviders_();
30 };