Drag[en]gine Game Engine
1.21
|
Resource loader task. More...
#include <deResourceLoaderTask.h>
Public Types | |
enum | eStates { esPending , esSucceeded , esFailed } |
States. More... | |
enum | eTypes { etRead , etWrite } |
Types. More... | |
Public Member Functions | |
Management | |
deVirtualFileSystem * | GetVFS () const |
Virtual file system. More... | |
const decString & | GetPath () const |
Path. More... | |
deResourceLoader::eResourceType | GetResourceType () const |
Resource type. More... | |
bool | Matches (deVirtualFileSystem *vfs, const char *path, deResourceLoader::eResourceType resourceType) const |
Task matches the given path/resourceType. More... | |
deFileResource * | GetResource () const |
Resource or NULL. More... | |
eStates | GetState () const |
State. More... | |
eTypes | GetType () const |
Type. More... | |
Public Member Functions inherited from deParallelTask | |
deBaseModule * | GetOwner () const |
Module owning the task or NULL if global. More... | |
bool | GetMarkFinishedAfterRun () const |
Mark task finished after Run() method leaves. More... | |
void | SetMarkFinishedAfterRun (bool markFinishedAfterRun) |
Set if task is marked finished after Run() method leaves. More... | |
bool | GetEmptyRun () const |
Task has empty run implementation. More... | |
void | SetEmptyRun (bool emptyRun) |
Set if task has empty run implementation. More... | |
bool | GetLowPriority () const |
Task has lower priority than other tasks. More... | |
void | SetLowPriority (bool lowPriority) |
Set if task has lower priority than other tasks. More... | |
bool | IsCancelled () const |
Task has been cancelled. More... | |
void | Cancel () |
Cancel task. More... | |
bool | GetFinished () const |
Task is finished. More... | |
void | SetFinished () |
Set task finished. More... | |
int | GetDependsOnCount () const |
Number of tasks this task depends on. More... | |
deParallelTask * | GetDependsOnAt (int index) const |
Depend on task at index. More... | |
bool | DoesDependOn (deParallelTask *task) const |
Task depends on another task. More... | |
void | AddDependsOn (deParallelTask *task) |
Add task this task depends on. More... | |
void | RemoveDependsOn (deParallelTask *task) |
Remove task this task depends on. More... | |
void | RemoveAllDependsOn () |
Remove all tasks this task depends on. More... | |
decThreadSafeObjectOrderedSet & | GetDependedOnBy () |
List of tasks depending on this task. More... | |
const decThreadSafeObjectOrderedSet & | GetDependedOnBy () const |
void | RemoveFromAllDependedOnTasks () |
Remove from all tasks depending on this task. More... | |
bool | CanRun () const |
Task can run. More... | |
void | Reset () |
Reset task. More... | |
virtual void | Run ()=0 |
Parallel task implementation. More... | |
virtual void | Finished ()=0 |
Processing of task Run() finished. More... | |
virtual void | Cancelled () |
Parallel task implementation has been cancelled. More... | |
deParallelTask (deBaseModule *owner) | |
Create task. More... | |
Public Member Functions inherited from deThreadSafeObject | |
int | GetRefCount () |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deThreadSafeObject () | |
Create object with reference count of 1. More... | |
Protected Member Functions | |
Constructors and Destructors | |
deResourceLoaderTask (deEngine &engine, deResourceLoader &resourceLoader, deVirtualFileSystem *vfs, const char *path, deResourceLoader::eResourceType resourceType) | |
Create task. More... | |
virtual | ~deResourceLoaderTask () |
Clean up task. More... | |
Protected Member Functions inherited from deParallelTask | |
virtual | ~deParallelTask () |
Clean up task. More... | |
Protected Member Functions inherited from deThreadSafeObject | |
virtual | ~deThreadSafeObject () |
Clean up object. More... | |
Debugging | |
deEngine & | GetEngine () |
deResourceLoader & | GetResourceLoader () |
void | SetResource (deFileResource *resource) |
void | SetState (eStates state) |
void | SetType (eTypes type) |
void | LogCreateEnter () |
void | LogCreateExit () |
void | LogRunEnter () |
void | LogRunExit () |
void | LogFinishedEnter () |
void | LogFinishedExit () |
void | LogFinished () |
virtual decString | GetDebugName () const |
Short task name for debugging. More... | |
virtual decString | GetDebugDetails () const |
Task details for debugging. More... | |
Resource loader task.
|
protected |
Create task.
|
protectedvirtual |
Clean up task.
|
virtual |
Task details for debugging.
Reimplemented from deParallelTask.
|
virtual |
Short task name for debugging.
Reimplemented from deParallelTask.
Reimplemented in deRLTaskWriteRig, deRLTaskWriteOcclusionMesh, deRLTaskWriteModel, deRLTaskWriteImage, deRLTaskWriteAnimation, deRLTaskReadVideo, deRLTaskReadSound, deRLTaskReadSkinInternal, deRLTaskReadSkin, deRLTaskReadRig, deRLTaskReadOcclusionMesh, deRLTaskReadModel, deRLTaskReadLanguagePack, deRLTaskReadImage, deRLTaskReadFontInternal2, deRLTaskReadFontInternal, deRLTaskReadFont, and deRLTaskReadAnimation.
|
inlineprotected |
|
inline |
Path.
|
inline |
Resource or NULL.
|
inlineprotected |
|
inline |
Resource type.
|
inline |
State.
|
inline |
Type.
|
inline |
Virtual file system.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
bool deResourceLoaderTask::Matches | ( | deVirtualFileSystem * | vfs, |
const char * | path, | ||
deResourceLoader::eResourceType | resourceType | ||
) | const |
Task matches the given path/resourceType.
|
protected |
|
protected |
|
protected |