![]() |
VR-Forces 5.0.2 Developer's Guide
|
An asynchronous job that can be added to and executed by a job server. Since this class derives from tbb::task it MUST use the the tbb task new operator. Ex: new (tbb::task::allocate_root()) DtAsyncJob(); Note that this class is abstract and cannot actually be instantiated, but all concrete subclasses must also follow this rule.

Public Member Functions | |
| DtAsyncJob () | |
| virtual | ~DtAsyncJob () |
| virtual task * | execute () |
| virtual task * | onExecute ()=0 |
| virtual task * | onException ()=0 |
| virtual void | tick () |
| virtual boost::shared_ptr < DtAsyncJobMapEntry > | getEntry () const =0 |
| virtual void | setEntry (boost::shared_ptr< DtAsyncJobMapEntry >)=0 |
| bool | cancel () const |
Public Member Functions inherited from DtAlgorithmManager | |
| virtual void | message (Severity, const std::string &) const |
| void | errorMessage (const std::string &) const |
| void | warnMessage (const std::string &) const |
| void | infoMessage (const std::string &) const |
| void | verboseMessage (const std::string &) const |
| void | debugMessage (const std::string &) const |
Protected Attributes | |
| DtAsyncJobServer * | myServer |
Additional Inherited Members | |
Public Types inherited from DtAlgorithmManager | |
| enum | Severity { Error, WARN, INFO, VERBOSE, DEBUG_LEVEL } |
| typedef DtTaggedException < DtAlgorithmManager > | Exception |
| DtAsyncJob::DtAsyncJob | ( | ) |
CTOR.
|
virtual |
Virtual DTOR.
|
virtual |
Do not override. Calls onExecute, then onException if there is an exception thrown.
Reimplemented in DtAsyncDetachedJob.
|
pure virtual |
Called to execute a task.
Implemented in MAKVRinTerra::DtMakePathJob, DtFindPositionGroupsInAreaUsingRidgeQuery, DtFindPositionGroupsInAreaUsingHilltopsQuery, DtFindSinglePositionQuery, DtVehiclePositionQuery, and DtHilltopQueryJob.
|
pure virtual |
Called when an exception is caught during execution.
Implemented in MAKVRinTerra::DtMakePathJob, DtFindPositionGroupsInAreaUsingRidgeQuery, DtFindPositionGroupsInAreaUsingHilltopsQuery, DtFindSinglePositionQuery, DtVehiclePositionQuery, and DtHilltopQueryJob.
|
virtual |
Called each tick.
|
pure virtual |
Returns the entry associated with this task. If it is null the task is no longer needed.
Implemented in DtAsyncDetachedJob, and DtAsyncManagedJob.
|
pure virtual |
Set the job entry.
Implemented in DtAsyncDetachedJob, and DtAsyncManagedJob.
|
virtual |
DtAlgorithmManager cancel function.
Reimplemented from DtAlgorithmManager.
|
protected |