blob: 6a48f0bec7ec4794a706258a0be71d2beaa269cf [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)
Patrick Venturea83a3ec2020-08-04 09:52:05 -070011 {}
Patrick Venture863b9242018-03-08 08:29:23 -080012
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070013 void write(double value) override;
Patrick Venture863b9242018-03-08 08:29:23 -080014};
15
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070016class ReadOnlyNoExcept : public WriteInterface
Patrick Venture863b9242018-03-08 08:29:23 -080017{
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070018 public:
19 ReadOnlyNoExcept() : WriteInterface(0, 0)
Patrick Venturea83a3ec2020-08-04 09:52:05 -070020 {}
Patrick Venture863b9242018-03-08 08:29:23 -080021
Patrick Ventureda4a5dd2018-08-31 09:42:48 -070022 void write(double value) override;
Patrick Venture863b9242018-03-08 08:29:23 -080023};