luaFunctionData.h
Go to the documentation of this file.
1 // Copyright 2006-2016 Coppelia Robotics GmbH. All rights reserved.
2 // marc@coppeliarobotics.com
3 // www.coppeliarobotics.com
4 //
5 // -------------------------------------------------------------------
6 // THIS FILE IS DISTRIBUTED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
7 // WARRANTY. THE USER WILL USE IT AT HIS/HER OWN RISK. THE ORIGINAL
8 // AUTHORS AND COPPELIA ROBOTICS GMBH WILL NOT BE LIABLE FOR DATA LOSS,
9 // DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING OR
10 // MISUSING THIS SOFTWARE.
11 //
12 // You are free to use/modify/distribute this file for whatever purpose!
13 // -------------------------------------------------------------------
14 //
15 // This file was automatically created for V-REP release V3.3.2 on August 29th 2016
16 
17 #pragma once
18 
19 #include "luaFunctionDataItem.h"
20 #include "v_repLib.h"
21 
22 #define SIM_LUA_ARG_NIL_ALLOWED (65536)
23 
25 {
26 public:
28  virtual ~CLuaFunctionData();
29 
30  //------------------------
31  static void getInputDataForFunctionRegistration(const int* dat,std::vector<int>& outDat);
32  bool readDataFromLua(const SLuaCallBack* p,const int* expectedArguments,int requiredArgumentCount,const char* functionName);
33  std::vector<CLuaFunctionDataItem>* getInDataPtr();
34  void pushOutData(const CLuaFunctionDataItem& dataItem);
36  //------------------------
37 
38 
39  //------------------------
41  void writeDataToLua_luaFunctionCall(SLuaCallBack* p,const int* expectedArguments);
42  bool readDataFromLua_luaFunctionCall(const SLuaCallBack* p,const int* expectedArguments,int requiredArgumentCount,const char* functionName);
43  std::vector<CLuaFunctionDataItem>* getOutDataPtr_luaFunctionCall();
45  //------------------------
46 
47 
48 
49 protected:
50  std::vector<CLuaFunctionDataItem> _inData;
51  std::vector<CLuaFunctionDataItem> _outData;
52 };
std::vector< CLuaFunctionDataItem > * getOutDataPtr_luaFunctionCall()
bool readDataFromLua(const SLuaCallBack *p, const int *expectedArguments, int requiredArgumentCount, const char *functionName)
bool readDataFromLua_luaFunctionCall(const SLuaCallBack *p, const int *expectedArguments, int requiredArgumentCount, const char *functionName)
void pushOutData(const CLuaFunctionDataItem &dataItem)
void writeDataToLua(SLuaCallBack *p)
virtual ~CLuaFunctionData()
std::vector< CLuaFunctionDataItem > _outData
void writeDataToLua_luaFunctionCall(SLuaCallBack *p, const int *expectedArguments)
static void getInputDataForFunctionRegistration(const int *dat, std::vector< int > &outDat)
std::vector< CLuaFunctionDataItem > _inData
void pushOutData_luaFunctionCall(const CLuaFunctionDataItem &dataItem)
void releaseBuffers_luaFunctionCall(SLuaCallBack *p)
std::vector< CLuaFunctionDataItem > * getInDataPtr()