| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "igpusensorprovider.h" |
| 7 | #include <memory> |
| 8 | #include <vector> |
| 9 | |
| 10 | class GPUSensorProvider final : public IGPUSensorProvider |
| 11 | { |
| 12 | public: |
| 13 | std::vector<std::unique_ptr<IGPUSensorProvider::IProvider>> const & |
| 14 | gpuSensorProviders() const override; |
| 15 | |
| 16 | static bool |
| 17 | registerProvider(std::unique_ptr<IGPUSensorProvider::IProvider> &&provider); |
| 18 | |
| 19 | private: |
| 20 | static std::vector<std::unique_ptr<IGPUSensorProvider::IProvider>> & |
| 21 | gpuSensorProviders_(); |
| 22 | }; |