Public Member Functions

FIFE::IResourceManager Class Reference

#include <resourcemanager.h>

Inheritance diagram for FIFE::IResourceManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 IResourceManager ()
virtual ~IResourceManager ()
virtual size_t getMemoryUsed () const =0
virtual size_t getTotalResourcesCreated () const =0
virtual size_t getTotalResourcesLoaded () const =0
virtual size_t getTotalResources () const =0

Detailed Description

IResourceManager

An interface for managing resources.

See also:
IResource
IResourceLoader

Definition at line 49 of file resourcemanager.h.


Constructor & Destructor Documentation

FIFE::IResourceManager::IResourceManager (  )  [inline]

Default constructor.

Definition at line 54 of file resourcemanager.h.

virtual FIFE::IResourceManager::~IResourceManager (  )  [inline, virtual]

destructor

Definition at line 58 of file resourcemanager.h.


Member Function Documentation

virtual size_t FIFE::IResourceManager::getMemoryUsed (  )  const [pure virtual]

Gets the total amount of memory used by resources

This function uses the IResource's getSize() function to calculate the total memory used. It does not include memory used by the internal resource manager book keeping structures. This value is only accurate if the resources getSize() function returns an accurate result.

Returns:
Total memory used
virtual size_t FIFE::IResourceManager::getTotalResources (  )  const [pure virtual]

Returns the number of defined resources

Gets the total number of resources managed by the manager.

Returns:
Total resources managed
virtual size_t FIFE::IResourceManager::getTotalResourcesCreated (  )  const [pure virtual]

Returns the number of unloaded resources

Gets the total number of resources created but not loaded. These resources have been defined in the resource manager but have yet to be loaded from disk.

Returns:
Total resources created
virtual size_t FIFE::IResourceManager::getTotalResourcesLoaded (  )  const [pure virtual]

Returns the number of loaded resources

Gets the total number of resources created and loaded. These resources have been defined in the resource manager have been loaded from disk.

Returns:
Total resources loaded

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