FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <resourcemanager.h>
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... | |
An interface for managing resources.
Definition at line 49 of file resourcemanager.h.
|
inline |
Default constructor.
Definition at line 54 of file resourcemanager.h.
|
inlinevirtual |
destructor
Definition at line 58 of file resourcemanager.h.
References getMemoryUsed(), getTotalResources(), getTotalResourcesCreated(), and getTotalResourcesLoaded().
|
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.
Implemented in FIFE::SoundClipManager, FIFE::AnimationManager, and FIFE::ImageManager.
Referenced by ~IResourceManager().
|
pure virtual |
Returns the number of defined resources.
Gets the total number of resources managed by the manager.
Implemented in FIFE::SoundClipManager, FIFE::AnimationManager, and FIFE::ImageManager.
Referenced by ~IResourceManager().
|
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.
Implemented in FIFE::SoundClipManager, FIFE::AnimationManager, and FIFE::ImageManager.
Referenced by ~IResourceManager().
|
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.
Implemented in FIFE::SoundClipManager, FIFE::AnimationManager, and FIFE::ImageManager.
Referenced by ~IResourceManager().