luaFunctionDataItem.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 <vector>
20 #include <string>
21 
23 {
24 public:
26  CLuaFunctionDataItem(bool v);
27  CLuaFunctionDataItem(int v);
28  CLuaFunctionDataItem(float v);
29  CLuaFunctionDataItem(double v);
30  CLuaFunctionDataItem(const std::string& v);
31  CLuaFunctionDataItem(const char* bufferPtr,unsigned int bufferLength);
32 
33  CLuaFunctionDataItem(const std::vector<bool>& v);
34  CLuaFunctionDataItem(const std::vector<int>& v);
35  CLuaFunctionDataItem(const std::vector<float>& v);
36  CLuaFunctionDataItem(const std::vector<double>& v);
37  CLuaFunctionDataItem(const std::vector<std::string>& v);
38 
39  virtual ~CLuaFunctionDataItem();
40 
41  bool isTable();
42  int getType();
43  void setNilTable(int size);
44  int getNilTableSize();
45 
46  std::vector<bool> boolData;
47  std::vector<int> intData;
48  std::vector<float> floatData;
49  std::vector<double> doubleData;
50  std::vector<std::string> stringData;
51 
52 protected:
54  bool _isTable;
55  int _type; // -1=nil,0=bool,1=int,2=float,3=string,4=buffer,5=double
56 };
std::vector< bool > boolData
std::vector< std::string > stringData
std::vector< double > doubleData
std::vector< int > intData
std::vector< float > floatData