include
thirdparty
vrep
include
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
22
class
CScriptFunctionDataItem
23
{
24
public
:
25
CScriptFunctionDataItem
();
26
CScriptFunctionDataItem
(
bool
v);
27
CScriptFunctionDataItem
(
int
v);
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
:
54
int
_nilTableSize
;
55
bool
_isTable
;
56
int
_type
;
// -1=nil,0=bool,1=int32,2=float,3=string,4=buffer,5=double
57
};
CScriptFunctionDataItem::~CScriptFunctionDataItem
virtual ~CScriptFunctionDataItem()
Definition:
scriptFunctionDataItem.cpp:123
CScriptFunctionDataItem::getNilTableSize
int getNilTableSize()
Definition:
scriptFunctionDataItem.cpp:146
CScriptFunctionDataItem::isTable
bool isTable()
Definition:
scriptFunctionDataItem.cpp:127
CScriptFunctionDataItem::floatData
std::vector< float > floatData
Definition:
scriptFunctionDataItem.h:49
CScriptFunctionDataItem::doubleData
std::vector< double > doubleData
Definition:
scriptFunctionDataItem.h:50
CScriptFunctionDataItem::int32Data
std::vector< int > int32Data
Definition:
scriptFunctionDataItem.h:48
CScriptFunctionDataItem::stringData
std::vector< std::string > stringData
Definition:
scriptFunctionDataItem.h:51
CScriptFunctionDataItem::_type
int _type
Definition:
scriptFunctionDataItem.h:56
CScriptFunctionDataItem::setNilTable
void setNilTable(int size)
Definition:
scriptFunctionDataItem.cpp:137
CScriptFunctionDataItem::_isTable
bool _isTable
Definition:
scriptFunctionDataItem.h:55
CScriptFunctionDataItem::getType
int getType()
Definition:
scriptFunctionDataItem.cpp:132
CScriptFunctionDataItem::_nilTableSize
int _nilTableSize
Definition:
scriptFunctionDataItem.h:54
CScriptFunctionDataItem::boolData
std::vector< bool > boolData
Definition:
scriptFunctionDataItem.h:47
CScriptFunctionDataItem
Definition:
scriptFunctionDataItem.h:22
CScriptFunctionDataItem::CScriptFunctionDataItem
CScriptFunctionDataItem()
Definition:
scriptFunctionDataItem.cpp:19