include
thirdparty
vrep
include
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
22
class
CLuaFunctionDataItem
23
{
24
public
:
25
CLuaFunctionDataItem
();
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
:
53
int
_nilTableSize
;
54
bool
_isTable
;
55
int
_type
;
// -1=nil,0=bool,1=int,2=float,3=string,4=buffer,5=double
56
};
CLuaFunctionDataItem::getNilTableSize
int getNilTableSize()
Definition:
luaFunctionDataItem.cpp:138
CLuaFunctionDataItem::boolData
std::vector< bool > boolData
Definition:
luaFunctionDataItem.h:46
CLuaFunctionDataItem::stringData
std::vector< std::string > stringData
Definition:
luaFunctionDataItem.h:50
CLuaFunctionDataItem::_nilTableSize
int _nilTableSize
Definition:
luaFunctionDataItem.h:53
CLuaFunctionDataItem::_isTable
bool _isTable
Definition:
luaFunctionDataItem.h:54
CLuaFunctionDataItem::getType
int getType()
Definition:
luaFunctionDataItem.cpp:124
CLuaFunctionDataItem
Definition:
luaFunctionDataItem.h:22
CLuaFunctionDataItem::isTable
bool isTable()
Definition:
luaFunctionDataItem.cpp:119
CLuaFunctionDataItem::CLuaFunctionDataItem
CLuaFunctionDataItem()
Definition:
luaFunctionDataItem.cpp:19
CLuaFunctionDataItem::doubleData
std::vector< double > doubleData
Definition:
luaFunctionDataItem.h:49
CLuaFunctionDataItem::~CLuaFunctionDataItem
virtual ~CLuaFunctionDataItem()
Definition:
luaFunctionDataItem.cpp:115
CLuaFunctionDataItem::setNilTable
void setNilTable(int size)
Definition:
luaFunctionDataItem.cpp:129
CLuaFunctionDataItem::intData
std::vector< int > intData
Definition:
luaFunctionDataItem.h:47
CLuaFunctionDataItem::floatData
std::vector< float > floatData
Definition:
luaFunctionDataItem.h:48
CLuaFunctionDataItem::_type
int _type
Definition:
luaFunctionDataItem.h:55