Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_systems
ResourceManagementSystem
ResourceAccess.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ResourceManagementSystem.hpp
"
4
#include <
ivorium_core/ivorium_core.hpp
>
5
6
namespace
iv
7
{
8
15
class
ResourceAccess
16
{
17
public
:
18
ClientMarker
cm
;
19
20
ResourceAccess
(
Instance
* inst );
21
Instance
*
instance
()
const
;
22
23
template
<
class
TResource >
24
bool
has_path
(
ResourcePath
const
& path );
25
26
template
<
class
TResource >
27
TResource
const
*
get
(
ResourcePath
const
& path );
28
32
template
<
class
TResource >
33
void
each_resource
( std::function<
void
(
ResourcePath
const
& path ) >
const
& );
34
35
private
:
36
Instance
* inst;
37
ResourceManagementSystem
* rms;
38
};
39
40
}
41
42
#include "
ResourceAccess.inl
"