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)
 
void reportStats (unsigned int frameNumber, osg::Stats *stats) const
 
- 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...
 
virtual void clearCache ()
 Clear all cache entries. More...
 
void setExpiryDelay (double expiryDelay)
 How long to keep objects in cache after no longer being referenced. More...
 
const VFS::ManagergetVFS () const
 
virtual void releaseGLObjects (osg::State *state)
 

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:

void Resource::NifFileManager::reportStats ( unsigned int  frameNumber,
osg::Stats *  stats 
) const
virtual

Reimplemented from Resource::ResourceManager.


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