summaryrefslogtreecommitdiff
path: root/netfs/lib/baseMapper.cpp
diff options
context:
space:
mode:
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))
+ {
+ }
+}