| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | // Copyright 2021 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "control.h" |
| 7 | #include <string> |
| 8 | #include <string_view> |
| 9 | |
| 10 | class Noop : public Control |
| 11 | { |
| 12 | public: |
| 13 | static constexpr std::string_view ItemID{"NOOP"}; |
| 14 | |
| 15 | Noop() noexcept; |
| 16 | |
| 17 | void preInit(ICommandQueue &ctlCmds) final override; |
| 18 | void postInit(ICommandQueue &ctlCmds) final override; |
| 19 | void init() final override; |
| 20 | |
| 21 | std::string const &ID() const final override; |
| 22 | |
| 23 | protected: |
| 24 | void importControl(IControl::Importer &i) final override; |
| 25 | void exportControl(IControl::Exporter &e) const final override; |
| 26 | |
| 27 | void cleanControl(ICommandQueue &ctlCmds) final override; |
| 28 | void syncControl(ICommandQueue &ctlCmds) final override; |
| 29 | |
| 30 | private: |
| 31 | std::string const id_; |
| 32 | }; |