1.10
respath.h
1/*
2 * Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef EGT_RESPATH_H
7#define EGT_RESPATH_H
8
14#include <egt/detail/meta.h>
15#include <string>
16
17namespace egt
18{
19inline namespace v1
20{
21
30EGT_API void add_search_path(const std::string& path);
31
35EGT_API void clear_search_paths();
36
45EGT_API std::string resolve_file_path(const std::string& filename);
46
47namespace detail
48{
50enum class SchemeType
51{
52 unknown,
55 network,
56};
57
63EGT_API SchemeType resolve_path(const std::string& path,
64 std::string& result);
65}
66
67}
68}
69
70#endif
SchemeType
URI scheme types.
Definition respath.h:51
EGT_API SchemeType resolve_path(const std::string &path, std::string &result)
Resolves a path to a type and path.
EGT_API void add_search_path(const std::string &path)
Add a search path for files.
EGT_API void clear_search_paths()
Clear all search paths for files.
EGT_API std::string resolve_file_path(const std::string &filename)
Given a file path, try to find it related to any added search paths.
EGT framework namespace.
Definition animation.h:24