#include <resourceManager.h>
template<class T>
class Resource< T >
Wrapper class around a ResourceInstance subclass.
terrRes = ResourceManager->load(fileName);
if(!bool(terrRes))
Resource()
Definition resourceManager.h:248
void errorf(ConsoleLogEntry::Type type, const char *fmt,...)
Definition console.cc:670
@ General
Definition console.h:74
When the Resource<> is destroyed, it frees the lock on the resource.
- See also
- ResManager
◆ Resource() [1/3]
If assigned a ResourceObject, it's assumed to already have been locked, lock count is incremented only for copies or assignment from another Resource.
◆ Resource() [2/3]
◆ Resource() [3/3]
◆ ~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().
◆ getCRC()
◆ getFileName()
template<class T>
| const char * getFileName |
( |
| ) |
const |
|
inline |
Returns the actual file name (without the path).
◆ getFilePath()
template<class T>
| const char * getFilePath |
( |
| ) |
const |
|
inline |
Returns the path of the file (without the actual name).
◆ isNull()
◆ operator bool()
◆ operator const T *()
template<class T>
| operator const T * |
( |
| ) |
const |
|
inline |
◆ operator T*()
◆ operator*() [1/2]
◆ operator*() [2/2]
template<class T>
| const T & operator* |
( |
| ) |
const |
|
inline |
◆ operator->() [1/2]
◆ operator->() [2/2]
template<class T>
| const T * operator-> |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ purge()
◆ unlock()
The documentation for this class was generated from the following file:
- io/resource/resourceManager.h