summaryrefslogtreecommitdiff
path: root/netfs/lib/entryResolver.h
blob: 84eb6ed4c28d06b248c02cf4a4557354460a3916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef NETFS_ENTRYRESOLVER_H
#define NETFS_ENTRYRESOLVER_H

#include <memory>

template<typename entry_t> class EntryResolver {
public:
	virtual ~EntryResolver() noexcept = default;

	virtual std::shared_ptr<entry_t> getEntry(const decltype(entry_t::id) &) const noexcept = 0;
	virtual std::shared_ptr<entry_t> getEntry(const decltype(entry_t::name) &) const noexcept = 0;
};

#endif