OpenMW
|
Handles caching of NIFFiles. More...
#include <niffilemanager.hpp>
Public Member Functions | |
NifFileManager (const VFS::Manager *vfs) | |
~NifFileManager () | |
Nif::NIFFilePtr | get (const std::string &name) |
Public Member Functions inherited from Resource::ResourceManager | |
ResourceManager (const VFS::Manager *vfs) | |
virtual | ~ResourceManager () |
virtual void | updateCache (double referenceTime) |
Clear cache entries that have not been referenced for longer than expiryDelay. More... | |
void | setExpiryDelay (double expiryDelay) |
How long to keep objects in cache after no longer being referenced. More... | |
const VFS::Manager * | getVFS () const |
Additional Inherited Members | |
Protected Attributes inherited from Resource::ResourceManager | |
const VFS::Manager * | mVFS |
osg::ref_ptr < Resource::ObjectCache > | mCache |
double | mExpiryDelay |
Handles caching of NIFFiles.
Resource::NifFileManager::NifFileManager | ( | const VFS::Manager * | vfs | ) |
Resource::NifFileManager::~NifFileManager | ( | ) |
Nif::NIFFilePtr Resource::NifFileManager::get | ( | const std::string & | name | ) |
Retrieve a NIF file from the cache, or load it from the VFS if not cached yet.