OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
Resource::NifFileManager Class Reference

Handles caching of NIFFiles. More...

#include <niffilemanager.hpp>

Inheritance diagram for Resource::NifFileManager:
Collaboration diagram for Resource::NifFileManager:

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::ManagergetVFS () const
 

Additional Inherited Members

- Protected Attributes inherited from Resource::ResourceManager
const VFS::ManagermVFS
 
osg::ref_ptr
< Resource::ObjectCache
mCache
 
double mExpiryDelay
 

Detailed Description

Handles caching of NIFFiles.

Note
May be used from any thread.

Constructor & Destructor Documentation

Resource::NifFileManager::NifFileManager ( const VFS::Manager vfs)
Resource::NifFileManager::~NifFileManager ( )

Member Function Documentation

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.

Note
For performance reasons the NifFileManager does not handle case folding, needs to be done in advance by other managers accessing the NifFileManager.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: