| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <memory> |
| 7 | |
| 8 | class IProfile; |
| 9 | class IProfileParser; |
| 10 | class IProfilePartXMLParserProvider; |
| 11 | |
| 12 | class ProfileXMLParserFactory |
| 13 | { |
| 14 | public: |
| 15 | ProfileXMLParserFactory(std::unique_ptr<IProfilePartXMLParserProvider> |
| 16 | &&profilePartParserProvider) noexcept; |
| 17 | |
| 18 | std::unique_ptr<IProfileParser> build(IProfile const &baseProfile) const; |
| 19 | |
| 20 | private: |
| 21 | std::unique_ptr<IProfilePartXMLParserProvider> profilePartParserProvider_; |
| 22 | }; |