VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
luaAsyncJob.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
10 #include "vrfLua/vrfLuaDefines.h"
12 #include <vrfutil/objectCounter.h>
13 
14 #include <boost/noncopyable.hpp>
15 
16 #include <luabind/luabind.hpp>
17 
18 
19 class DtLocalObject;
21 
51  : public DtAsciiSerializable
52  , public boost::noncopyable
53  , public std::enable_shared_from_this<DtLuaAsyncJob>
54 #ifdef DtObjectDebugger_Enable
55  , public DtObjectDebugger<DtLuaAsyncJob>
56 #endif
57 {
58 public:
59 
66  virtual luabind::object getObject(lua_State* L, int& index, std::string& message) = 0;
67 
71  virtual luabind::object getDebugObject(lua_State* L) = 0;
72 
74  virtual void cancel(lua_State* L) = 0;
75 
77  virtual void init(void* userData) override;
78 
81  virtual void setOwningObject(DtLocalObject* owningObject);
82 
83 protected:
84  DtLuaAsyncJob();
86 
88 };
89 
91 DT_DLL_vrfLua std::ostream& operator<<(std::ostream& stream, const DtLuaAsyncJob& vec);
92 
Definition: asciiSerializable.h:42
Interface for getting asynchronously computed data into Lua.
Definition: luaAsyncJob.h:50
virtual void init(void *userData)
This function is called right after the object is constructed during the deserialization process...
Definition: asciiSerializable.h:80
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:31
Default on in debug, off in release.
Definition: objectCounter.h:27
DT_DLL_features std::ostream & operator<<(std::ostream &, const DtFeatureTransform &)
std::ostream output.
#define DT_DLL_vrfLua
This file is used to determine how to build.
Definition: vrfLuaDefines.h:25
voidpf stream
Definition: ioapi.h:39
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
DtSimulationServices * mySimulationServices
Definition: luaAsyncJob.h:87
A locally simulated VRF object.
Definition: localObject.h:98

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)