#include <Resource.h>
Public Member Functions | |
| Resource (const std::string &filePath) | |
| Resource () | |
| virtual | ~Resource () |
| const std::string & | getName () const |
| const std::string & | getErrorMessage () const |
| const Uint | getID () const |
| bool | isLoaded () const |
Protected Attributes | |
| std::string | mResourceName |
| std::string | mErrorDescription |
| bool | mIsLoaded |
Private Member Functions | |
| virtual void | load ()=0 |
Private Attributes | |
| Uint | mGUID |
A basic Resource.
A base Resource class from which all other resources are derived. Provides the basic framework for Resources to load and initialize themselves.
Can be used with or without a ResourceManager however it is recommended that a ResourceManager be used.
| Resource::Resource | ( | const std::string & | filePath | ) |
| Resource::Resource | ( | ) |
Default Constructor.
| virtual Resource::~Resource | ( | ) | [inline, virtual] |
| const std::string& Resource::getErrorMessage | ( | ) | const [inline] |
Returns the last error message.
| const std::string& Resource::getName | ( | ) | const [inline] |
Returns the name of the Resource as a file name with directory path.
| bool Resource::isLoaded | ( | ) | const [inline] |
Returns true if this Resource loaded properly.
| virtual void Resource::load | ( | ) | [private, pure virtual] |
std::string Resource::mErrorDescription [protected] |
Internal Error Message.
Uint Resource::mGUID [private] |
A 'unique' id for this resource.
bool Resource::mIsLoaded [protected] |
Flag indicating whether or not this Resource has loaded properly.
std::string Resource::mResourceName [protected] |
File path and internal identifier.
1.7.1