| Alexander Hansen | 46a755f | 2025-10-27 16:31:08 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // SPDX-FileCopyrightText: Copyright 2017 Google Inc | ||||
| Patrick Venture | 863b924 | 2018-03-08 08:29:23 -0800 | [diff] [blame] | 3 | |
| Patrick Venture | 863b924 | 2018-03-08 08:29:23 -0800 | [diff] [blame] | 4 | #include "readonly.hpp" |
| 5 | |||||
| Patrick Venture | da4a5dd | 2018-08-31 09:42:48 -0700 | [diff] [blame] | 6 | #include <stdexcept> |
| Patrick Venture | 863b924 | 2018-03-08 08:29:23 -0800 | [diff] [blame] | 7 | |
| Patrick Venture | a076487 | 2020-08-08 07:48:43 -0700 | [diff] [blame] | 8 | namespace pid_control |
| 9 | { | ||||
| 10 | |||||
| Harvey.Wu | a1ae4fa | 2022-10-28 17:38:35 +0800 | [diff] [blame] | 11 | void ReadOnly::write([[maybe_unused]] double value) |
| Patrick Venture | 863b924 | 2018-03-08 08:29:23 -0800 | [diff] [blame] | 12 | { |
| 13 | throw std::runtime_error("Not supported."); | ||||
| 14 | } | ||||
| 15 | |||||
| Harvey.Wu | a1ae4fa | 2022-10-28 17:38:35 +0800 | [diff] [blame] | 16 | void ReadOnlyNoExcept::write([[maybe_unused]] double value) |
| Patrick Venture | 863b924 | 2018-03-08 08:29:23 -0800 | [diff] [blame] | 17 | { |
| 18 | return; | ||||
| 19 | } | ||||
| Patrick Venture | a076487 | 2020-08-08 07:48:43 -0700 | [diff] [blame] | 20 | |
| 21 | } // namespace pid_control | ||||