![]() |
VR-Forces Development_Version Class Documentation
|
Interface for getting asynchronously computed data into Lua. More...

Public Member Functions | |
| virtual luabind::object | getObject (lua_State *L, int &index, std::string &message)=0 |
| Retrieve current value. | |
| void | init (void *userData) |
| Called by framework with userData set to the DtSimManager. | |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| The implementer of this interface should be sure to create a creator function to create an empty object that returns a pointer to this interface. | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual DtString | objectType () const =0 |
| Should return the string name of this object. | |
| virtual std::string | objectTypeC () const |
| Returns a std::string version of the objectType. | |
| virtual DtString | serialize ()=0 |
| The following characters are reserved and cannot be used in serialization: '|', ':'. | |
| virtual bool | deserialize (const DtString &)=0 |
| This function should take the string that was serialized via serialize() and fill this object with the correct data. | |
Protected Member Functions | |
| DtLuaAsyncJob () | |
| DtLuaAsyncJob (DtSimManager *) | |
Protected Member Functions inherited from DtObjectDebugger< DtLuaAsyncJob > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
Protected Attributes | |
| DtSimManager * | mySimManager |
Additional Inherited Members | |
Static Public Member Functions inherited from DtObjectDebugger< DtAsciiSerializable > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Static Public Member Functions inherited from DtObjectDebugger< DtLuaAsyncJob > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
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.
|
protected |
|
explicitprotected |
|
pure virtual |
Retrieve current value.
| L | Lua state. |
| index | Index of returned value, returned in Lua as the second return value. Allows implementation to distinguish between different values computed over time. |
| message | Error message, returned in Lua as the third return value. |
Implemented in DtLuaNavPointOfInterestJob, DtLuaNavRandomPointJob, DtLuaPathJob, and DtLuaNavJob.
|
virtual |
Called by framework with userData set to the DtSimManager.
Reimplemented from DtAsciiSerializable.
|
protected |