blob: 5a5c3354b0ad11a18b317eaa33b48495caf17d2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef NETFS_MAPPING_DEFAULTIMPL_H
#define NETFS_MAPPING_DEFAULTIMPL_H
#include "entries.h"
#include "entryResolver.h"
#include <mapper.h>
namespace NetFS {
namespace Mapping {
class DefaultMapper : public Mapper {
public:
DefaultMapper();
DefaultMapper(EntryResolverPtr<User> users);
DefaultMapper(EntryResolverPtr<User> users, EntryResolverPtr<Group> groups);
Transport mapFileSystem(int uid, int gid) override;
FileSystem mapTransport(const std::string & un, const std::string & gn) override;
protected:
EntryResolverPtr<User> users;
EntryResolverPtr<Group> groups;
};
}
}
#endif
|