diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-09-20 16:10:50 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-09-20 16:10:50 +0100 |
commit | a615da850d89ecd785a6a43e07527932637f8a2f (patch) | |
tree | a9778d2967510aa22f89e69bb849f90617de492b /netfs/lib/baseMapper.cpp | |
parent | Add the MaskUnknown mapper (diff) | |
download | netfs-a615da850d89ecd785a6a43e07527932637f8a2f.tar.bz2 netfs-a615da850d89ecd785a6a43e07527932637f8a2f.tar.xz netfs-a615da850d89ecd785a6a43e07527932637f8a2f.zip |
Common base for mappers
Diffstat (limited to 'netfs/lib/baseMapper.cpp')
-rw-r--r-- | netfs/lib/baseMapper.cpp | 13 |
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)) + { + } +} |