Drag[en]gine Game Engine  1.21
deRLTaskReadFontInternal Class Reference

Read font resource loader task. More...

#include <deRLTaskReadFontInternal.h>

Inheritance diagram for deRLTaskReadFontInternal:
deResourceLoaderTask deParallelTask deThreadSafeObject

Public Member Functions

Constructors and Destructors
 deRLTaskReadFontInternal (deEngine &engine, deResourceLoader &resourceLoader, deVirtualFileSystem *vfs, const char *path, deRLTaskReadFont *parentTask)
 Create task. More...
 
virtual ~deRLTaskReadFontInternal ()
 Clean up task. More...
 
Management
virtual void Run ()
 Parallel task implementation. More...
 
virtual void Finished ()
 Synchronous processing of task Run() finished. More...
 
deFontGetFont () const
 Font. More...
 
bool GetAlreadyLoaded () const
 Font has been already loaded. More...
 
deRLTaskReadFontInternal2GetInternalTask () const
 Second task or NULL. More...
 
Debugging
virtual decString GetDebugName () const
 Short task name for debugging. More...
 
- Public Member Functions inherited from deResourceLoaderTask
deVirtualFileSystemGetVFS () const
 Virtual file system. More...
 
const decStringGetPath () 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...
 
deFileResourceGetResource () const
 Resource or NULL. More...
 
eStates GetState () const
 State. More...
 
eTypes GetType () const
 Type. More...
 
virtual decString GetDebugDetails () const
 Task details for debugging. More...
 
- Public Member Functions inherited from deParallelTask
deBaseModuleGetOwner () 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...
 
deParallelTaskGetDependsOnAt (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...
 
decThreadSafeObjectOrderedSetGetDependedOnBy ()
 List of tasks depending on this task. More...
 
const decThreadSafeObjectOrderedSetGetDependedOnBy () 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 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...
 

Additional Inherited Members

- Public Types inherited from deResourceLoaderTask
enum  eStates { esPending , esSucceeded , esFailed }
 States. More...
 
enum  eTypes { etRead , etWrite }
 Types. More...
 
- Protected Member Functions inherited from deResourceLoaderTask
 deResourceLoaderTask (deEngine &engine, deResourceLoader &resourceLoader, deVirtualFileSystem *vfs, const char *path, deResourceLoader::eResourceType resourceType)
 Create task. More...
 
virtual ~deResourceLoaderTask ()
 Clean up task. More...
 
deEngineGetEngine ()
 
deResourceLoaderGetResourceLoader ()
 
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 ()
 
- Protected Member Functions inherited from deParallelTask
virtual ~deParallelTask ()
 Clean up task. More...
 
- Protected Member Functions inherited from deThreadSafeObject
virtual ~deThreadSafeObject ()
 Clean up object. More...
 

Detailed Description

Read font resource loader task.

Warning
For internal use only.

Constructor & Destructor Documentation

◆ deRLTaskReadFontInternal()

deRLTaskReadFontInternal::deRLTaskReadFontInternal ( deEngine engine,
deResourceLoader resourceLoader,
deVirtualFileSystem vfs,
const char *  path,
deRLTaskReadFont parentTask 
)

Create task.

◆ ~deRLTaskReadFontInternal()

virtual deRLTaskReadFontInternal::~deRLTaskReadFontInternal ( )
virtual

Clean up task.

Member Function Documentation

◆ Finished()

virtual void deRLTaskReadFontInternal::Finished ( )
virtual

Synchronous processing of task Run() finished.

Implements deParallelTask.

◆ GetAlreadyLoaded()

bool deRLTaskReadFontInternal::GetAlreadyLoaded ( ) const
inline

Font has been already loaded.

◆ GetDebugName()

virtual decString deRLTaskReadFontInternal::GetDebugName ( ) const
virtual

Short task name for debugging.

Reimplemented from deResourceLoaderTask.

◆ GetFont()

deFont* deRLTaskReadFontInternal::GetFont ( ) const
inline

Font.

◆ GetInternalTask()

deRLTaskReadFontInternal2* deRLTaskReadFontInternal::GetInternalTask ( ) const
inline

Second task or NULL.

◆ Run()

virtual void deRLTaskReadFontInternal::Run ( )
virtual

Parallel task implementation.

Implements deParallelTask.


The documentation for this class was generated from the following file: