| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "core/exportable.h" |
| 7 | #include "core/importable.h" |
| 8 | #include "core/item.h" |
| 9 | #include <string> |
| 10 | #include <string_view> |
| 11 | #include <unordered_map> |
| 12 | #include <unordered_set> |
| 13 | #include <utility> |
| 14 | #include <vector> |
| 15 | |
| 16 | class ICommandQueue; |
| 17 | |
| 18 | class ISysModel |
| 19 | : public Item |
| 20 | , public Importable |
| 21 | , public Exportable |
| 22 | { |
| 23 | public: |
| 24 | static constexpr std::string_view ItemID{"SYS_MODEL"}; |
| 25 | |
| 26 | class Importer : public Importable::Importer |
| 27 | { |
| 28 | public: |
| 29 | }; |
| 30 | |
| 31 | class Exporter : public Exportable::Exporter |
| 32 | { |
| 33 | public: |
| 34 | }; |
| 35 | |
| 36 | virtual void init() = 0; |
| 37 | virtual void preInit(ICommandQueue &ctlCmds) = 0; |
| 38 | virtual void postInit(ICommandQueue &ctlCmds) = 0; |
| 39 | virtual void sync(ICommandQueue &ctlCmds) = 0; |
| 40 | virtual void updateSensors( |
| 41 | std::unordered_map<std::string, std::unordered_set<std::string>> const |
| 42 | &ignored) = 0; |
| 43 | |
| 44 | virtual std::vector< |
| 45 | std::pair<std::string, std::vector<std::pair<std::string, std::string>>>> |
| 46 | info() const = 0; |
| 47 | |
| 48 | virtual ~ISysModel() = default; |
| 49 | }; |