#include <loadableentity.h>
Inheritance diagram for LoadableEntity:
If the derived class needs to keep the file open, it should set the m_bKeepFile flag to true before returning from the LoadNode method.
This base class also keeps track of redundant multiple calls to load and object that has already been loaded.
Public Member Functions | |
LoadableEntity (FileManager *pkFileManager=0) | |
virtual | ~LoadableEntity () |
void | SetFileManager (FileManager *pkManager) |
bool | Load (const std::string &rstrFilename, unsigned int uiFlags=0, bool bForceReload=false, bool bSearchFileSystem=false) |
bool | Load (File *pkFile, unsigned int uiFlags=0, bool bForceReload=false) |
Protected Member Functions | |
virtual bool | LoadNode (unsigned int uiFlags=0)=0 |
Protected Attributes | |
File * | m_pkFile |
bool | m_bLoaded |
bool | m_bKeepFile |
FileManager * | m_pkFileManager |
|
|
|
|
|
Main loader method. Called by LoadableEntity to load object if file was opened successfully
|
|
Set new file manager object
|
|
Load resource
|
|
Load resource
|
|
|
Flag indicating node is loaded |
|
Flag to block file deletion on load completion |
|
File manager |