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 
19 
28  : public DtAsciiSerializable
29  , public boost::noncopyable
30  , public std::enable_shared_from_this<DtLuaAsyncJob>
31 #ifdef DtObjectDebugger_Enable
32  , public DtObjectDebugger<DtLuaAsyncJob>
33 #endif
34 {
35 public:
36 
43  virtual luabind::object getObject(lua_State* L, int& index, std::string& message) = 0;
44 
48  virtual luabind::object getDebugObject(lua_State* L) = 0;
49 
51  virtual void cancel(lua_State* L) = 0;
52 
54  virtual void init(void* userData) override;
55 
56 protected:
57  DtLuaAsyncJob();
59 
61 };
62 
64 DT_DLL_vrfLua std::ostream& operator<<(std::ostream& stream, const DtLuaAsyncJob& vec);
65 
Definition: asciiSerializable.h:40
Interface for getting asynchronously computed data into Lua.
Definition: luaAsyncJob.h:27
virtual void init(void *userData)
This function is called right after the object is constructed during the deserialization process...
Definition: asciiSerializable.h:78
#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:96
DtSimulationServices * mySimulationServices
Definition: luaAsyncJob.h:60

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)