summaryrefslogtreecommitdiff
path: root/modules/remote/c++/transfer.hpp
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-15 15:29:12 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-15 15:29:12 +0200
commit816760c8480e8e76c7f4021a845161eb697e215c (patch)
treef18ef0578dab81e1f00798e9c897210236340b90 /modules/remote/c++/transfer.hpp
parent5d92d62caa68473e67022debe45bf8038c6c3b60 (diff)
Moving remote definitions from codec to remote module
Diffstat (limited to 'modules/remote/c++/transfer.hpp')
-rw-r--r--modules/remote/c++/transfer.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/remote/c++/transfer.hpp b/modules/remote/c++/transfer.hpp
new file mode 100644
index 0000000..2fdd0b9
--- /dev/null
+++ b/modules/remote/c++/transfer.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+namespace saw {
+template<typename Schema, typename Encoding, typename Remote>
+class data_server;
+
+template<typename Schema, typename Encoding, typename Remote>
+class data_client;
+
+namespace impl {
+template<typename Encoding, typename Storage, typename T>
+struct data_server_redux {
+ using type = std::tuple<>;
+};
+
+template<typename Encoding, typename Storage, typename... Schema>
+struct data_server_redux<Encoding, Storage, tmpl_group<Schema...>> {
+ using type = std::tuple<std::unordered_map<uint64_t, data<Schema, Encoding, Storage>>...>;
+};
+}
+}