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 | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtLuaMultiAsyncJob Class Reference
Inheritance diagram for DtLuaMultiAsyncJob:
Inheritance graph
[legend]

Public Member Functions

 DtLuaMultiAsyncJob ()
 
virtual ~DtLuaMultiAsyncJob () override
 
virtual luabind::object getObject (lua_State *L, int &index, std::string &message) override
 
virtual luabind::object getDebugObject (lua_State *L) override
 
virtual void cancel (lua_State *L) override
 
virtual DtString serialize () override
 
virtual bool deserialize (const DtString &) override
 
virtual DtString objectType () const override
 
std::shared_ptr
< DtLuaMultiAsyncJob > 
shared_from_this ()
 
std::shared_ptr< const
DtLuaMultiAsyncJob > 
shared_from_this () const
 
- Public Member Functions inherited from DtLuaAsyncJob
virtual void init (void *userData) override
 
virtual void setOwningObject (DtLocalObject *owningObject)
 
- Public Member Functions inherited from DtAsciiSerializable
 DtAsciiSerializable ()
 
 DtAsciiSerializable (const DtAsciiSerializable &orig)
 
virtual ~DtAsciiSerializable ()
 
virtual std::string objectTypeC () const
 

Static Public Member Functions

static std::shared_ptr
< DtLuaMultiAsyncJob > 
Make (DtSimulationServices *simServices, std::vector< std::shared_ptr< DtLuaAsyncJob > > jobs)
 
static DtAsciiSerializable * creator ()
 

Protected Member Functions

virtual bool areAllJobsDone (lua_State *L) const
 
virtual bool isJobDone (lua_State *L, std::shared_ptr< DtLuaAsyncJob > job) const
 
 DtLuaMultiAsyncJob (DtSimulationServices *simServices, std::vector< std::shared_ptr< DtLuaAsyncJob > > jobs)
 
- Protected Member Functions inherited from DtLuaAsyncJob
 DtLuaAsyncJob ()
 
 DtLuaAsyncJob (DtSimulationServices *)
 

Protected Attributes

std::vector< std::shared_ptr
< DtLuaAsyncJob > > 
myJobs
 
- Protected Attributes inherited from DtLuaAsyncJob
DtSimulationServices * mySimulationServices
 

Constructor & Destructor Documentation

DtLuaMultiAsyncJob::DtLuaMultiAsyncJob ( )

For creating when deserializing.

virtual DtLuaMultiAsyncJob::~DtLuaMultiAsyncJob ( )
overridevirtual

Destructor.

DtLuaMultiAsyncJob::DtLuaMultiAsyncJob ( DtSimulationServices *  simServices,
std::vector< std::shared_ptr< DtLuaAsyncJob > >  jobs 
)
protected

Member Function Documentation

static std::shared_ptr<DtLuaMultiAsyncJob> DtLuaMultiAsyncJob::Make ( DtSimulationServices *  simServices,
std::vector< std::shared_ptr< DtLuaAsyncJob > >  jobs 
)
static

Factory method for creating a new job. The job will be started before returning. Must supply a list of the jobs to run, and the job will be marked complete when all of them are complete. The results of each job will be returned in a table from getObject().

virtual luabind::object DtLuaMultiAsyncJob::getObject ( lua_State *  L,
int &  index,
std::string &  message 
)
overridevirtual

Retrieve current value.

Parameters
LLua state.
indexIndex of returned value, returned in Lua as the second return value. Allows implementation to distinguish between different values computed over time.
messageError message, returned in Lua as the third return value.
Returns
Computed value.

Implements DtLuaAsyncJob.

virtual luabind::object DtLuaMultiAsyncJob::getDebugObject ( lua_State *  L)
overridevirtual

Returns debug data. Not generally used.

Parameters
LLua state.
Returns
Debug data.

Implements DtLuaAsyncJob.

virtual void DtLuaMultiAsyncJob::cancel ( lua_State *  L)
overridevirtual

Cancels the job.

Implements DtLuaAsyncJob.

static DtAsciiSerializable* DtLuaMultiAsyncJob::creator ( )
static

DtAsciiSerializable functions.

virtual DtString DtLuaMultiAsyncJob::serialize ( )
overridevirtual

The following characters are reserved and cannot be used in serialization: '|', ':'.

Implements DtAsciiSerializable.

virtual bool DtLuaMultiAsyncJob::deserialize ( const DtString &  )
overridevirtual

This function should take the string that was serialized via serialize() and fill this object with the correct data.

Implements DtAsciiSerializable.

virtual DtString DtLuaMultiAsyncJob::objectType ( ) const
overridevirtual

Should return the string name of this object. The object name should not be part of the serialization unless you want it to be, but you should take it into account when implementing both functions.

Implements DtAsciiSerializable.

std::shared_ptr<DtLuaMultiAsyncJob> DtLuaMultiAsyncJob::shared_from_this ( )
std::shared_ptr<const DtLuaMultiAsyncJob> DtLuaMultiAsyncJob::shared_from_this ( ) const
virtual bool DtLuaMultiAsyncJob::areAllJobsDone ( lua_State *  L) const
protectedvirtual
virtual bool DtLuaMultiAsyncJob::isJobDone ( lua_State *  L,
std::shared_ptr< DtLuaAsyncJob >  job 
) const
protectedvirtual

Member Data Documentation

std::vector<std::shared_ptr<DtLuaAsyncJob> > DtLuaMultiAsyncJob::myJobs
protected

List of jobs to wait on.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)