blob: 2929b7595e18799ccbbd529e61af7967837b763d [file] [log] [blame]
Patrick Venture863b9242018-03-08 08:29:23 -08001#pragma once
2
3/* Interface that implements an exception throwing read method. */
4
5#include "interfaces.hpp"
6
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07007class ReadOnly : public WriteInterface
Patrick Venture863b9242018-03-08 08:29:23 -08008{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -07009 public:
10 ReadOnly() : WriteInterface(0, 0)
11 {
12 }
Patrick Venture863b9242018-03-08 08:29:23 -080013
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070014 void write(double value) override;
Patrick Venture863b9242018-03-08 08:29:23 -080015};
16
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070017class ReadOnlyNoExcept : public WriteInterface
Patrick Venture863b9242018-03-08 08:29:23 -080018{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070019 public:
20 ReadOnlyNoExcept() : WriteInterface(0, 0)
21 {
22 }
Patrick Venture863b9242018-03-08 08:29:23 -080023
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070024 void write(double value) override;
Patrick Venture863b9242018-03-08 08:29:23 -080025};