VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtAsyncJob Class Referenceabstract

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 DtAsyncJob(); Note that this class is abstract and cannot actually be instantiated, but all concrete subclasses must also follow this rule.

Inheritance diagram for DtAsyncJob:
Inheritance graph
[legend]

Public Member Functions

 DtAsyncJob ()
 
virtual ~DtAsyncJob ()
 
virtual void execute ()
 
virtual void onExecute ()=0
 
virtual void onException ()=0
 
virtual void tick ()
 
virtual std::shared_ptr
< DtAsyncJobMapEntry
getEntry () const =0
 
virtual void setEntry (std::shared_ptr< DtAsyncJobMapEntry >)=0
 
virtual bool cancel () const override
 
- 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

DtAsyncJobServermyServer
 

Additional Inherited Members

- Public Types inherited from DtAlgorithmManager
enum  Severity {
  Error, WARN, INFO, VERBOSE,
  DEBUG_LEVEL
}
 
typedef DtTaggedException
< DtAlgorithmManager
Exception
 

Constructor & Destructor Documentation

DtAsyncJob::DtAsyncJob ( )

CTOR.

virtual DtAsyncJob::~DtAsyncJob ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void DtAsyncJob::execute ( )
virtual

Do not override. Calls onExecute, then onException if there is an exception thrown.

Reimplemented in DtAsyncDetachedJob.

virtual void DtAsyncJob::onExecute ( )
pure virtual
virtual void DtAsyncJob::onException ( )
pure virtual
virtual void DtAsyncJob::tick ( )
virtual

Called each tick.

virtual std::shared_ptr<DtAsyncJobMapEntry> DtAsyncJob::getEntry ( ) const
pure virtual

Returns the entry associated with this task. If it is null the task is no longer needed.

Implemented in DtAsyncDetachedJob, and DtAsyncManagedJob.

virtual void DtAsyncJob::setEntry ( std::shared_ptr< DtAsyncJobMapEntry )
pure virtual

Set the job entry.

Implemented in DtAsyncDetachedJob, and DtAsyncManagedJob.

virtual bool DtAsyncJob::cancel ( ) const
overridevirtual

DtAlgorithmManager cancel function.

Reimplemented from DtAlgorithmManager.

Member Data Documentation

DtAsyncJobServer* DtAsyncJob::myServer
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)