YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
AllJoyData.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
// Autogenerated by Thrift (based on compiler 0.14.1-yarped)
7
// yarpidl_thrift version 2.0 - 11/11/2026
8
// This is an automatically generated file.
9
// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10
11
#ifndef YARP_THRIFT_GENERATOR_STRUCT_ALLJOYDATA_H
12
#define YARP_THRIFT_GENERATOR_STRUCT_ALLJOYDATA_H
13
14
#include <
yarp/os/Wire.h
>
15
#include <
yarp/os/idl/WireTypes.h
>
16
#include <
yarp/dev/MultipleTouches.h
>
17
#include <
yarp/dev/StickData.h
>
18
#include <
yarp/dev/TrackballData.h
>
19
20
namespace
yarp::dev
{
21
22
class
AllJoyData
:
23
public
yarp::os::idl::WirePortable
24
{
25
public
:
26
// Fields
27
std::vector<double>
ButtonDataVal
{};
28
std::vector<double>
AxisDataVal
{};
29
std::vector<std::int8_t>
HatsDataVal
{};
30
std::vector<MultipleTouches>
TouchDataVal
{};
31
std::vector<yarp::dev::StickData>
StickDataVal
{};
32
std::vector<yarp::dev::TrackballData>
TrackballDataVal
{};
33
34
public
:
35
// Default constructor
36
AllJoyData
() =
default
;
37
38
// Constructor with field values
39
AllJoyData
(
const
std::vector<double>&
ButtonDataVal
,
40
const
std::vector<double>&
AxisDataVal
,
41
const
std::vector<std::int8_t>&
HatsDataVal
,
42
const
std::vector<MultipleTouches>&
TouchDataVal
,
43
const
std::vector<yarp::dev::StickData>&
StickDataVal
,
44
const
std::vector<yarp::dev::TrackballData>&
TrackballDataVal
);
45
46
// Read structure on a Wire
47
bool
read
(
yarp::os::idl::WireReader
& reader)
override
;
48
49
// Read structure on a Connection
50
bool
read
(
yarp::os::ConnectionReader
& connection)
override
;
51
52
// Write structure on a Wire
53
bool
write
(
const
yarp::os::idl::WireWriter
& writer)
const override
;
54
55
// Write structure on a Connection
56
bool
write
(
yarp::os::ConnectionWriter
& connection)
const override
;
57
58
// Convert to a printable string
59
std::string
toString
()
const
;
60
61
// If you want to serialize this class without nesting, use this helper
62
typedef
yarp::os::idl::Unwrapped<AllJoyData>
unwrapped
;
63
64
private
:
65
// read/write ButtonDataVal field
66
bool
read_ButtonDataVal(
yarp::os::idl::WireReader
& reader);
67
bool
write_ButtonDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
68
bool
nested_read_ButtonDataVal(
yarp::os::idl::WireReader
& reader);
69
bool
nested_write_ButtonDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
70
71
// read/write AxisDataVal field
72
bool
read_AxisDataVal(
yarp::os::idl::WireReader
& reader);
73
bool
write_AxisDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
74
bool
nested_read_AxisDataVal(
yarp::os::idl::WireReader
& reader);
75
bool
nested_write_AxisDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
76
77
// read/write HatsDataVal field
78
bool
read_HatsDataVal(
yarp::os::idl::WireReader
& reader);
79
bool
write_HatsDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
80
bool
nested_read_HatsDataVal(
yarp::os::idl::WireReader
& reader);
81
bool
nested_write_HatsDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
82
83
// read/write TouchDataVal field
84
bool
read_TouchDataVal(
yarp::os::idl::WireReader
& reader);
85
bool
write_TouchDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
86
bool
nested_read_TouchDataVal(
yarp::os::idl::WireReader
& reader);
87
bool
nested_write_TouchDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
88
89
// read/write StickDataVal field
90
bool
read_StickDataVal(
yarp::os::idl::WireReader
& reader);
91
bool
write_StickDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
92
bool
nested_read_StickDataVal(
yarp::os::idl::WireReader
& reader);
93
bool
nested_write_StickDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
94
95
// read/write TrackballDataVal field
96
bool
read_TrackballDataVal(
yarp::os::idl::WireReader
& reader);
97
bool
write_TrackballDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
98
bool
nested_read_TrackballDataVal(
yarp::os::idl::WireReader
& reader);
99
bool
nested_write_TrackballDataVal(
const
yarp::os::idl::WireWriter
& writer)
const
;
100
};
101
102
}
// namespace yarp::dev
103
104
#endif
// YARP_THRIFT_GENERATOR_STRUCT_ALLJOYDATA_H
MultipleTouches.h
StickData.h
TrackballData.h
WireTypes.h
Wire.h
yarp::dev::AllJoyData
Definition
AllJoyData.h:24
yarp::dev::AllJoyData::write
bool write(const yarp::os::idl::WireWriter &writer) const override
Definition
AllJoyData.cpp:73
yarp::dev::AllJoyData::ButtonDataVal
std::vector< double > ButtonDataVal
Definition
AllJoyData.h:27
yarp::dev::AllJoyData::unwrapped
yarp::os::idl::Unwrapped< AllJoyData > unwrapped
Definition
AllJoyData.h:62
yarp::dev::AllJoyData::AllJoyData
AllJoyData()=default
yarp::dev::AllJoyData::StickDataVal
std::vector< yarp::dev::StickData > StickDataVal
Definition
AllJoyData.h:31
yarp::dev::AllJoyData::TrackballDataVal
std::vector< yarp::dev::TrackballData > TrackballDataVal
Definition
AllJoyData.h:32
yarp::dev::AllJoyData::toString
std::string toString() const
Definition
AllJoyData.cpp:113
yarp::dev::AllJoyData::AxisDataVal
std::vector< double > AxisDataVal
Definition
AllJoyData.h:28
yarp::dev::AllJoyData::HatsDataVal
std::vector< std::int8_t > HatsDataVal
Definition
AllJoyData.h:29
yarp::dev::AllJoyData::TouchDataVal
std::vector< MultipleTouches > TouchDataVal
Definition
AllJoyData.h:30
yarp::dev::AllJoyData::read
bool read(yarp::os::idl::WireReader &reader) override
Definition
AllJoyData.cpp:33
yarp::os::ConnectionReader
An interface for reading from a network connection.
Definition
ConnectionReader.h:34
yarp::os::ConnectionWriter
An interface for writing to a network connection.
Definition
ConnectionWriter.h:34
yarp::os::idl::Unwrapped
Definition
Unwrapped.h:17
yarp::os::idl::WirePortable
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
Definition
WirePortable.h:21
yarp::os::idl::WireReader
IDL-friendly connection reader.
Definition
WireReader.h:27
yarp::os::idl::WireWriter
IDL-friendly connection writer.
Definition
WireWriter.h:28
yarp::dev
For streams capable of holding different kinds of content, check what they actually have.
Definition
BatteryData.cpp:13
YARP
4.0.2+169-20261113.4+git2cc772dc6
src
devices
messages
IJoypadControlMsgs
idl_generated_code
yarp
dev
AllJoyData.h
Generated on Sun Nov 15 2026 02:11:15 for YARP by
1.9.8