OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
resourcesmanager.hpp
Go to the documentation of this file.
1 #ifndef CSM_WOLRD_RESOURCESMANAGER_H
2 #define CSM_WOLRD_RESOURCESMANAGER_H
3 
4 #include <map>
5 
6 #include "universalid.hpp"
7 #include "resources.hpp"
8 
9 namespace VFS
10 {
11  class Manager;
12 }
13 
14 namespace CSMWorld
15 {
17  {
18  std::map<UniversalId::Type, Resources> mResources;
20 
21  private:
22 
23  void addResources (const Resources& resources);
24 
25  public:
26 
28 
29  const VFS::Manager* getVFS() const;
30 
31  void setVFS(const VFS::Manager* vfs);
32 
33  const Resources& get (UniversalId::Type type) const;
34  };
35 }
36 
37 #endif
void setVFS(const VFS::Manager *vfs)
Definition: resourcesmanager.cpp:17
Type
Definition: universalid.hpp:40
void addResources(const Resources &resources)
Definition: resourcesmanager.cpp:10
Definition: resourcesmanager.hpp:16
Definition: resources.hpp:17
ResourcesManager()
Definition: resourcesmanager.cpp:5
const VFS::Manager * getVFS() const
Definition: resourcesmanager.cpp:34
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20
std::map< UniversalId::Type, Resources > mResources
Definition: resourcesmanager.hpp:18
const VFS::Manager * mVFS
Definition: resourcesmanager.hpp:19