2 #ifndef GRAMODS_CORE_FILERESOLVER
3 #define GRAMODS_CORE_FILERESOLVER
5 #include <gmCore/config.hh>
9 BEGIN_NAMESPACE_GMCORE;
46 bool readUrnFile(std::filesystem::path urn_file);
52 std::filesystem::path resolve(std::string, Check check = Check::None);
57 std::filesystem::path
resolve(std::filesystem::path path,
58 Check check = Check::None) {
59 return resolve(path.u8string(), check);
65 static std::filesystem::path getPathToExecutable();
72 return &default_resolver;
77 std::unique_ptr<Impl> _impl;
The FileResolver provides a means to locate resources in a portable manner.
Definition: FileResolver.hh:27
std::filesystem::path resolve(std::filesystem::path path, Check check=Check::None)
Resolves the specified path using the currently loaded rules.
Definition: FileResolver.hh:57
Check
Flag for checking path after resolving pattern.
Definition: FileResolver.hh:37
static FileResolver * getDefault()
Returns the default resolver.
Definition: FileResolver.hh:70