scriptFunctionDataItem.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:
28  CScriptFunctionDataItem(float v);
29  CScriptFunctionDataItem(double v);
30  CScriptFunctionDataItem(const std::string& str);
31  CScriptFunctionDataItem(const char* str);
32  CScriptFunctionDataItem(const char* bufferPtr,unsigned int bufferLength);
33 
34  CScriptFunctionDataItem(const std::vector<bool>& v);
35  CScriptFunctionDataItem(const std::vector<int>& v);
36  CScriptFunctionDataItem(const std::vector<float>& v);
37  CScriptFunctionDataItem(const std::vector<double>& v);
38  CScriptFunctionDataItem(const std::vector<std::string>& v);
39 
40  virtual ~CScriptFunctionDataItem();
41 
42  bool isTable();
43  int getType();
44  void setNilTable(int size);
45  int getNilTableSize();
46 
47  std::vector<bool> boolData;
48  std::vector<int> int32Data;
49  std::vector<float> floatData;
50  std::vector<double> doubleData;
51  std::vector<std::string> stringData;
52 
53 protected:
55  bool _isTable;
56  int _type; // -1=nil,0=bool,1=int32,2=float,3=string,4=buffer,5=double
57 };
std::vector< float > floatData
std::vector< double > doubleData
std::vector< std::string > stringData
std::vector< bool > boolData