VR-Forces 5.0.2 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 Member Functions | Protected Attributes
DtLuaAsyncJob Class Referenceabstract

Interface for getting asynchronously computed data into Lua.

The class is designed to be a general interface to some process which is computing values. The getObject function returns the "current" value and some control information. The subclass is responsible for all aspects of the asynchronous operation: Starting/stopping, data synchronization, and serialization/deserialization. The Lua framework will hold on to this object as a shared pointer.

Inheritance diagram for DtLuaAsyncJob:
Inheritance graph
[legend]

Public Member Functions

virtual luabind::object getObject (lua_State *L, int &index, std::string &message)=0
 
virtual luabind::object getDebugObject (lua_State *L)=0
 
virtual void cancel (lua_State *L)=0
 
void init (void *userData)
 
- Public Member Functions inherited from DtAsciiSerializable
 DtAsciiSerializable ()
 
 DtAsciiSerializable (const DtAsciiSerializable &orig)
 
virtual ~DtAsciiSerializable ()
 
virtual DtString objectType () const =0
 
virtual std::string objectTypeC () const
 
virtual DtString serialize ()=0
 
virtual bool deserialize (const DtString &)=0
 

Protected Member Functions

 DtLuaAsyncJob ()
 
 DtLuaAsyncJob (DtSimulationServices *)
 

Protected Attributes

DtSimulationServicesmySimulationServices
 

Constructor & Destructor Documentation

DtLuaAsyncJob::DtLuaAsyncJob ( )
protected
DtLuaAsyncJob::DtLuaAsyncJob ( DtSimulationServices )
explicitprotected

Member Function Documentation

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

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.

Implemented in DtLuaFindPositionGroupsInAreaUsingRidgeQueryJob, DtLuaNavFindPathJob, DtLuaFindPositionGroupsInAreaUsingHilltopsQueryJob, DtLuaNavCoverPointJob, DtLuaFindSinglePositionQueryJob, DtLuaNavPointOfInterestJob, DtLuaVehicleFightingPositionQueryJob, DtLuaNavRandomPointJob, DtLuaPathJob, DtLuaWeaponListQueryJob, DtLuaEmbarkationEgressPointsQueryJob, DtLuaEmbarkationSlotQueryJob, DtLuaEmbarkationSlotReservationJob, DtLuaHilltopQueryJob, and DtLuaNavJob.

virtual luabind::object DtLuaAsyncJob::getDebugObject ( lua_State *  L)
pure virtual
virtual void DtLuaAsyncJob::cancel ( lua_State *  L)
pure virtual
void DtLuaAsyncJob::init ( void *  userData)
virtual

Called by framework with userData set to the DtSimulationServices.

Reimplemented from DtAsciiSerializable.

Member Data Documentation

DtSimulationServices* DtLuaAsyncJob::mySimulationServices
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)