summaryrefslogtreecommitdiff
path: root/modules/remote-filesystem/c++/remote.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/remote-filesystem/c++/remote.hpp')
-rw-r--r--modules/remote-filesystem/c++/remote.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/remote-filesystem/c++/remote.hpp b/modules/remote-filesystem/c++/remote.hpp
index 8390501..0225bc5 100644
--- a/modules/remote-filesystem/c++/remote.hpp
+++ b/modules/remote-filesystem/c++/remote.hpp
@@ -2,6 +2,7 @@
#include <filesystem>
+#include <forstio/codec/schema_hash.hpp>
#include <forstio/remote/remote.hpp>
namespace saw {
@@ -35,6 +36,8 @@ private:
std::map<std::string, ptr<i_data_server<rmt::File>>> registered_data_servers_;
public:
+ remote() = default;
+
error_or<own<remote_address<rmt::File>>> parse_address(const std::string_view& path_v){
return heap<remote_address<rmt::File>>(path_v);
}
@@ -47,8 +50,15 @@ public:
}
auto dat_srv = heap<data_server<Schema, Encode, rmt::File>>(*this, addr);
- insert_res.first->second = {dat_srv};
+ insert_res.first->second = ptr<i_data_server<rmt::File>>{*dat_srv};
return dat_srv;
}
+
+ /**
+ * Internal deregister function
+ */
+ error_or<void> deregister_data_server(ptr<i_data_server<rmt::File>> srv){
+ return make_error<err::not_implemented>();
+ }
};
}