1 #pragma once 2 3 /* Interface that implements an exception throwing read method. */ 4 5 #include "interfaces.hpp" 6 7 class ReadOnly : public WriteInterface 8 { 9 public: 10 ReadOnly() : WriteInterface(0, 0) 11 { 12 } 13 14 void write(double value) override; 15 }; 16 17 class ReadOnlyNoExcept : public WriteInterface 18 { 19 public: 20 ReadOnlyNoExcept() : WriteInterface(0, 0) 21 { 22 } 23 24 void write(double value) override; 25 }; 26