Keos::CResourceManager Class Reference

Resource manager. More...

#include <KeosResourceManager.h>

Inheritance diagram for Keos::CResourceManager:

Inheritance graph
[legend]
List of all members.

Public Member Functions

template<class T>
T * Get (const String &strName) const
 Get a resource.
void Add (const String &strName, IResource *pResource)
 Add a resource.
void Remove (const String &strName)
 Remove a resource.

Detailed Description

Resource manager.

Using for loadable resource from a file.

Definition at line 33 of file KeosResourceManager.h.


Member Function Documentation

template<class T>
T * Keos::CResourceManager::Get ( const String strName  )  const [inline]

Get a resource.

Parameters:
strName Name of the resource.
Returns:
Pointer on the resource, or NULL if it was not loaded.

Definition at line 78 of file KeosResourceManager.h.

void Keos::CResourceManager::Add ( const String strName,
IResource pResource 
)

Add a resource.

Parameters:
strName Name of the resource.
pResource Resource to add.

Definition at line 55 of file KeosResourceManager.cpp.

References Assert, Keos::ILogger::Log(), and Keos::IResource::m_strName.

void Keos::CResourceManager::Remove ( const String strName  ) 

Remove a resource.

Parameters:
strName Name of the resource.

Definition at line 67 of file KeosResourceManager.cpp.

References Keos::ILogger::Log().


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:28 2007 for Keos by  doxygen 1.5.1-p1