YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Map2DObjectData.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 Compiler (0.14.1-yarped)
7//
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_MAP2DOBJECTDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_MAP2DOBJECTDATA_H
13
14#include <yarp/dev/api.h>
15
16#include <yarp/os/Wire.h>
18
19namespace yarp::dev {
20
23{
24public:
25 // Fields
29 std::string map_id{};
33 double x{0.0};
37 double y{0.0};
41 double z{0.0};
45 double roll{0.0};
49 double pitch{0.0};
53 double yaw{0.0};
57 std::string description{};
58
59 // Default constructor
60 Map2DObjectData() = default;
61
62 // Constructor with field values
63 Map2DObjectData(const std::string& map_id,
64 const double x,
65 const double y,
66 const double z,
67 const double roll,
68 const double pitch,
69 const double yaw,
70 const std::string& description);
71
72 // Read structure on a Wire
73 bool read(yarp::os::idl::WireReader& reader) override;
74
75 // Read structure on a Connection
76 bool read(yarp::os::ConnectionReader& connection) override;
77
78 // Write structure on a Wire
79 bool write(const yarp::os::idl::WireWriter& writer) const override;
80
81 // Write structure on a Connection
82 bool write(yarp::os::ConnectionWriter& connection) const override;
83
84 // Convert to a printable string
85 std::string toString() const;
86
87 // If you want to serialize this class without nesting, use this helper
89
90private:
91 // read/write map_id field
92 bool read_map_id(yarp::os::idl::WireReader& reader);
93 bool write_map_id(const yarp::os::idl::WireWriter& writer) const;
94 bool nested_read_map_id(yarp::os::idl::WireReader& reader);
95 bool nested_write_map_id(const yarp::os::idl::WireWriter& writer) const;
96
97 // read/write x field
98 bool read_x(yarp::os::idl::WireReader& reader);
99 bool write_x(const yarp::os::idl::WireWriter& writer) const;
100 bool nested_read_x(yarp::os::idl::WireReader& reader);
101 bool nested_write_x(const yarp::os::idl::WireWriter& writer) const;
102
103 // read/write y field
104 bool read_y(yarp::os::idl::WireReader& reader);
105 bool write_y(const yarp::os::idl::WireWriter& writer) const;
106 bool nested_read_y(yarp::os::idl::WireReader& reader);
107 bool nested_write_y(const yarp::os::idl::WireWriter& writer) const;
108
109 // read/write z field
110 bool read_z(yarp::os::idl::WireReader& reader);
111 bool write_z(const yarp::os::idl::WireWriter& writer) const;
112 bool nested_read_z(yarp::os::idl::WireReader& reader);
113 bool nested_write_z(const yarp::os::idl::WireWriter& writer) const;
114
115 // read/write roll field
116 bool read_roll(yarp::os::idl::WireReader& reader);
117 bool write_roll(const yarp::os::idl::WireWriter& writer) const;
118 bool nested_read_roll(yarp::os::idl::WireReader& reader);
119 bool nested_write_roll(const yarp::os::idl::WireWriter& writer) const;
120
121 // read/write pitch field
122 bool read_pitch(yarp::os::idl::WireReader& reader);
123 bool write_pitch(const yarp::os::idl::WireWriter& writer) const;
124 bool nested_read_pitch(yarp::os::idl::WireReader& reader);
125 bool nested_write_pitch(const yarp::os::idl::WireWriter& writer) const;
126
127 // read/write yaw field
128 bool read_yaw(yarp::os::idl::WireReader& reader);
129 bool write_yaw(const yarp::os::idl::WireWriter& writer) const;
130 bool nested_read_yaw(yarp::os::idl::WireReader& reader);
131 bool nested_write_yaw(const yarp::os::idl::WireWriter& writer) const;
132
133 // read/write description field
134 bool read_description(yarp::os::idl::WireReader& reader);
135 bool write_description(const yarp::os::idl::WireWriter& writer) const;
136 bool nested_read_description(yarp::os::idl::WireReader& reader);
137 bool nested_write_description(const yarp::os::idl::WireWriter& writer) const;
138};
139
140} // namespace yarp::dev
141
142#endif // YARP_THRIFT_GENERATOR_STRUCT_MAP2DOBJECTDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
yarp::os::idl::Unwrapped< Map2DObjectData > unwrapped
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.
#define YARP_dev_API
Definition api.h:18