Main Page
Classes
Files
File List
File Members
src
gloveStatus.cc
Go to the documentation of this file.
1
18
/* system includes */
19
/* (none) */
20
21
/* my includes */
22
#include "
gloveStatus.h
"
23
24
25
gloveStatus::gloveStatus
()
26
{
27
}
28
29
gloveStatus::~gloveStatus
()
30
{
31
}
32
33
uchar_t
gloveStatus::getSensorSize
()
34
{
35
return
sensorSize
;
36
}
37
38
void
gloveStatus::setSensorSize
(
uchar_t
n)
39
{
40
sensorSize
= n;
41
}
42
43
void
gloveStatus::setGloveStatusByte
(
bool
activate)
44
{
45
flags
.
X
.
is_glove_byte
= activate;
46
}
47
48
bool
gloveStatus::isGloveStatusByte
()
49
{
50
return
flags
.
X
.
is_glove_byte
;
51
}
52
53
void
gloveStatus::setTimeStamp
(
bool
activate)
54
{
55
flags
.
X
.
is_time_stamp
= activate;
56
}
57
58
bool
gloveStatus::isTimeStamp
()
59
{
60
return
flags
.
X
.
is_time_stamp
;
61
}
62
63
void
gloveStatus:: setParameterFlags
(
parameterFlags_t
flg)
64
{
65
flags
= flg;
66
}
67
68
69
70
#if gloveStatus_test
71
#include <stdio.h>
72
int
main
(
int
argc,
char
**argv)
73
{
74
// This is a module-test block. You can put code here that tests
75
// just the contents of this C file, and build it by saying
76
// make gloveStatus_test
77
// Then, run the resulting executable (gloveStatus_test).
78
// If it works as expected, the module is probably correct. ;-)
79
80
fprintf(stderr,
"Testing gloveStatus\n"
);
81
82
return
0;
83
}
84
#endif
/* gloveStatus_test */
gloveStatus::isGloveStatusByte
bool isGloveStatusByte()
Definition:
gloveStatus.cc:48
gloveStatus::~gloveStatus
~gloveStatus()
Definition:
gloveStatus.cc:29
gloveStatus::setGloveStatusByte
void setGloveStatusByte(bool activate)
Definition:
gloveStatus.cc:43
gloveStatus::setSensorSize
void setSensorSize(uchar_t n)
Definition:
gloveStatus.cc:38
uchar_t
unsigned char uchar_t
Definition:
gloveTypes.h:28
gloveStatus::isTimeStamp
bool isTimeStamp()
Definition:
gloveStatus.cc:58
main
int main(int argc, char **argv)
Definition:
gloveServerRun.cc:87
gloveStatus::flags
parameterFlags_t flags
Definition:
gloveStatus.h:54
parameterFlags_t::X
struct parameterFlags_t::@5 X
gloveStatus::sensorSize
uchar_t sensorSize
Definition:
gloveStatus.h:53
gloveStatus::gloveStatus
gloveStatus()
Definition:
gloveStatus.cc:25
parameterFlags_t
Definition:
gloveTypes.h:102
gloveStatus::setParameterFlags
void setParameterFlags(parameterFlags_t flg)
Definition:
gloveStatus.cc:63
gloveStatus.h
gloveStatus::setTimeStamp
void setTimeStamp(bool activate)
Definition:
gloveStatus.cc:53
parameterFlags_t::is_time_stamp
uchar_t is_time_stamp
Definition:
gloveTypes.h:117
gloveStatus::getSensorSize
uchar_t getSensorSize()
Definition:
gloveStatus.cc:33
parameterFlags_t::is_glove_byte
uchar_t is_glove_byte
Definition:
gloveTypes.h:114
asr_cyberglove_lib
Author(s): Heller Florian, Meißner Pascal, Nguyen Trung, Yi Xie
autogenerated on Mon Jun 10 2019 12:40:38