FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::IResourceManager Class Referenceabstract

IResourceManager. More...

#include <resourcemanager.h>

+ Inheritance diagram for FIFE::IResourceManager:
+ Collaboration diagram for FIFE::IResourceManager:

Public Member Functions

 IResourceManager ()
 Default constructor. More...
 
virtual ~IResourceManager ()
 destructor More...
 
virtual size_t getMemoryUsed () const =0
 Gets the total amount of memory used by resources. More...
 
virtual size_t getTotalResourcesCreated () const =0
 Returns the number of unloaded resources. More...
 
virtual size_t getTotalResourcesLoaded () const =0
 Returns the number of loaded resources. More...
 
virtual size_t getTotalResources () const =0
 Returns the number of defined resources. More...
 

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 ( )
inlinevirtual

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

Implemented in FIFE::SoundClipManager, FIFE::AnimationManager, and FIFE::ImageManager.

Referenced by ~IResourceManager().

+ Here is the caller graph for this function:

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

Implemented in FIFE::SoundClipManager, FIFE::AnimationManager, and FIFE::ImageManager.

Referenced by ~IResourceManager().

+ Here is the caller graph for this function:

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

Implemented in FIFE::SoundClipManager, FIFE::AnimationManager, and FIFE::ImageManager.

Referenced by ~IResourceManager().

+ Here is the caller graph for this function:

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

Implemented in FIFE::SoundClipManager, FIFE::AnimationManager, and FIFE::ImageManager.

Referenced by ~IResourceManager().

+ Here is the caller graph for this function:


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