summaryrefslogtreecommitdiff
path: root/netfs/lib/defaultMapper.h
blob: 214f9ed0b3f08469304f0df55cc0fb273cbf2067 (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
#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, 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