#include <resourceManager.h>
template<class T>
class Resource< T >
Wrapper class around a ResourceInstance subclass.
terrRes = ResourceManager->
load(fileName);
if(!bool(terrRes))
When the Resource<> is destroyed, it frees the lock on the resource.
- See Also
- ResManager
If assigned a ResourceObject, it's assumed to already have been locked, lock count is incremented only for copies or assignment from another Resource.
Decrements the lock count on this object, and if the lock count is 0 afterwards, adds the object to the timeoutList for deletion on execution of purge().
const char* getFileName |
( |
| ) |
const |
|
inline |
Returns the actual file name (without the path)
const char* getFilePath |
( |
| ) |
const |
|
inline |
Returns the path of the file (without the actual name)
operator const T * |
( |
| ) |
const |
|
inline |
const T& operator* |
( |
| ) |
const |
|
inline |
const T* operator-> |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file:
- io/resource/resourceManager.h