aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/util/Proxy.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-27 16:50:20 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-27 16:50:20 +0100
commitecc5761fa78ccb57db958467c3fc999aceadd409 (patch)
tree8e5f24133473de3f122d59262727a9f0a3a806c9 /src/crepe/util/Proxy.h
parente0b1ddae296037376948a4c6f200d89e6d1ba81e (diff)
fix valuebroker/proxy system
Diffstat (limited to 'src/crepe/util/Proxy.h')
-rw-r--r--src/crepe/util/Proxy.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/crepe/util/Proxy.h b/src/crepe/util/Proxy.h
new file mode 100644
index 0000000..f8eb1f2
--- /dev/null
+++ b/src/crepe/util/Proxy.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "ValueBroker.h"
+
+namespace crepe::util {
+
+template <typename T>
+class Proxy {
+public:
+ Proxy & operator = (const T &);
+ operator const T & () const;
+
+public:
+ Proxy(ValueBroker<T> &);
+
+private:
+ ValueBroker<T> & broker;
+};
+
+}
+
+#include "Proxy.hpp"
+