1863b9246SPatrick Venture /** 2863b9246SPatrick Venture * Copyright 2017 Google Inc. 3863b9246SPatrick Venture * 4863b9246SPatrick Venture * Licensed under the Apache License, Version 2.0 (the "License"); 5863b9246SPatrick Venture * you may not use this file except in compliance with the License. 6863b9246SPatrick Venture * You may obtain a copy of the License at 7863b9246SPatrick Venture * 8863b9246SPatrick Venture * http://www.apache.org/licenses/LICENSE-2.0 9863b9246SPatrick Venture * 10863b9246SPatrick Venture * Unless required by applicable law or agreed to in writing, software 11863b9246SPatrick Venture * distributed under the License is distributed on an "AS IS" BASIS, 12863b9246SPatrick Venture * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13863b9246SPatrick Venture * See the License for the specific language governing permissions and 14863b9246SPatrick Venture * limitations under the License. 15863b9246SPatrick Venture */ 16863b9246SPatrick Venture 17863b9246SPatrick Venture #include "readonly.hpp" 18863b9246SPatrick Venture 19da4a5dd1SPatrick Venture #include <stdexcept> 20863b9246SPatrick Venture 21a076487aSPatrick Venture namespace pid_control 22a076487aSPatrick Venture { 23a076487aSPatrick Venture write(double value)24*a1ae4fa1SHarvey.Wuvoid ReadOnly::write([[maybe_unused]] double value) 25863b9246SPatrick Venture { 26863b9246SPatrick Venture throw std::runtime_error("Not supported."); 27863b9246SPatrick Venture } 28863b9246SPatrick Venture write(double value)29*a1ae4fa1SHarvey.Wuvoid ReadOnlyNoExcept::write([[maybe_unused]] double value) 30863b9246SPatrick Venture { 31863b9246SPatrick Venture return; 32863b9246SPatrick Venture } 33a076487aSPatrick Venture 34a076487aSPatrick Venture } // namespace pid_control 35