summaryrefslogtreecommitdiff
path: root/netfs/lib/baseMapper.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-15 00:20:23 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-15 00:20:23 +0000
commita38270df3ddad2ac60524a40eb986ab37e473c04 (patch)
tree2b0ff976a616fb970e62b93b3ffb52517efc1343 /netfs/lib/baseMapper.cpp
parentAdd missing include (diff)
parentBump to C++20, required by new Slicer (diff)
downloadnetfs-a38270df3ddad2ac60524a40eb986ab37e473c04.tar.bz2
netfs-a38270df3ddad2ac60524a40eb986ab37e473c04.tar.xz
netfs-a38270df3ddad2ac60524a40eb986ab37e473c04.zip
Psycho-rebased branch mapper on top of netfs-1.4netfs-1.4.0.1-mark
Diffstat (limited to 'netfs/lib/baseMapper.cpp')
-rw-r--r--netfs/lib/baseMapper.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/netfs/lib/baseMapper.cpp b/netfs/lib/baseMapper.cpp
new file mode 100644
index 0000000..c3518e4
--- /dev/null
+++ b/netfs/lib/baseMapper.cpp
@@ -0,0 +1,13 @@
+#include "baseMapper.h"
+#include "entCache.h"
+
+namespace NetFS::Mapping {
+ BaseMapper::BaseMapper() : BaseMapper(std::make_shared<UserEntCache>()) { }
+
+ BaseMapper::BaseMapper(EntryResolverPtr<User> u) : BaseMapper(std::move(u), std::make_shared<GroupEntCache>(u)) { }
+
+ BaseMapper::BaseMapper(EntryResolverPtr<User> u, EntryResolverPtr<Group> g) :
+ users(std::move(u)), groups(std::move(g))
+ {
+ }
+}