| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "core/info/iswinfo.h" |
| 7 | #include <string> |
| 8 | #include <unordered_map> |
| 9 | |
| 10 | class SWInfo final : public ISWInfo |
| 11 | { |
| 12 | public: |
| 13 | std::string info(std::string_view key) const override; |
| 14 | std::vector<std::string> keys() const override; |
| 15 | void initialize(std::vector<std::unique_ptr<ISWInfo::IProvider>> const |
| 16 | &infoProviders) override; |
| 17 | |
| 18 | private: |
| 19 | std::unordered_map<std::string, std::string> info_; |
| 20 | }; |