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>
17#include <yarp/dev/StickData.h>
19
20namespace yarp::dev {
21
24{
25public:
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
34public:
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
63
64private:
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
bool write(const yarp::os::idl::WireWriter &writer) const override
std::vector< double > ButtonDataVal
Definition AllJoyData.h:27
yarp::os::idl::Unwrapped< AllJoyData > unwrapped
Definition AllJoyData.h:62
std::vector< yarp::dev::StickData > StickDataVal
Definition AllJoyData.h:31
std::vector< yarp::dev::TrackballData > TrackballDataVal
Definition AllJoyData.h:32
std::string toString() const
std::vector< double > AxisDataVal
Definition AllJoyData.h:28
std::vector< std::int8_t > HatsDataVal
Definition AllJoyData.h:29
std::vector< MultipleTouches > TouchDataVal
Definition AllJoyData.h:30
bool read(yarp::os::idl::WireReader &reader) override
An interface for reading from a network connection.
An interface for writing to a network connection.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
IDL-friendly connection reader.
Definition WireReader.h:27
IDL-friendly connection writer.
Definition WireWriter.h:28
For streams capable of holding different kinds of content, check what they actually have.