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