| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "exportable.h" |
| 7 | #include <memory> |
| 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | class IProfile; |
| 12 | |
| 13 | class IProfileParser |
| 14 | { |
| 15 | public: |
| 16 | virtual std::string const &format() = 0; |
| 17 | |
| 18 | virtual std::unique_ptr<Exportable::Exporter> initializer() = 0; |
| 19 | |
| 20 | virtual bool load(std::vector<char> const &data, IProfile &profile) = 0; |
| 21 | virtual bool save(std::vector<char> &data, IProfile const &profile) = 0; |
| 22 | |
| 23 | virtual ~IProfileParser() = default; |
| 24 | }; |