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