blob: 958c49dcfe966e5a36eb46d8588672b23a8e1c55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef RESOURCE_H
#define RESOURCE_H
#include <filesystem>
class Resource {
public:
static void setBasePath(std::filesystem::path);
static std::filesystem::path mapPath(const std::filesystem::path &);
};
#if defined(RESDIR) && defined(BOOST_TEST_MODULE)
class SetResourcePath {
public:
SetResourcePath()
{
Resource::setBasePath(RESDIR);
}
};
BOOST_GLOBAL_FIXTURE(SetResourcePath);
#endif
#endif
|