Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
IResourceIdentifierResolver.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace ph
6{
7
9class Path;
10
12{
13public:
17 virtual ~IResourceIdentifierResolver() = default;
18
22 virtual bool resolve(ResourceIdentifier& identifier) = 0;
23
26
27protected:
28 static void setResolved(ResourceIdentifier& identifier, Path resolved);
29 static void setResolved(ResourceIdentifier& identifier, std::string resolved);
30 static void clearResolved(ResourceIdentifier& identifier);
31};
32
33}// end namespace ph
Definition IResourceIdentifierResolver.h:12
IResourceIdentifierResolver(const IResourceIdentifierResolver &other)=default
IResourceIdentifierResolver(IResourceIdentifierResolver &&other) noexcept=default
static void clearResolved(ResourceIdentifier &identifier)
Definition IResourceIdentifierResolver.cpp:20
virtual ~IResourceIdentifierResolver()=default
IResourceIdentifierResolver & operator=(const IResourceIdentifierResolver &rhs)=default
virtual bool resolve(ResourceIdentifier &identifier)=0
Resolve the identifier;.
static void setResolved(ResourceIdentifier &identifier, Path resolved)
Definition IResourceIdentifierResolver.cpp:10
General path representation. Does not check whether the target actually exists (e....
Definition Path.h:21
An general identifier that points to some resource. This is the most general form of a resource ident...
Definition ResourceIdentifier.h:20
The root for all renderer implementations.
Definition EEngineProject.h:6