ResourceAccess.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace iv
7 {
8 
16 {
17 public:
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;
38 };
39 
40 }
41 
42 #include "ResourceAccess.inl"