YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Map2DAreaData.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_MAP2DAREADATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_MAP2DAREADATA_H
13
14#include <yarp/dev/api.h>
15
16#include <yarp/os/Wire.h>
18#include <yarp/math/Vec2D.h>
19
20namespace yarp::dev {
21
24{
25public:
26 // Fields
30 std::string map_id{};
34 std::vector<yarp::math::Vec2D<double>> points{};
38 std::string description{};
39
40public:
41 // Default constructor
42 Map2DAreaData() = default;
43
44 // Constructor with field values
45 Map2DAreaData(const std::string& map_id,
46 const std::vector<yarp::math::Vec2D<double>>& points,
47 const std::string& description);
48
49 // Read structure on a Wire
50 bool read(yarp::os::idl::WireReader& reader) override;
51
52 // Read structure on a Connection
53 bool read(yarp::os::ConnectionReader& connection) override;
54
55 // Write structure on a Wire
56 bool write(const yarp::os::idl::WireWriter& writer) const override;
57
58 // Write structure on a Connection
59 bool write(yarp::os::ConnectionWriter& connection) const override;
60
61 // Convert to a printable string
62 std::string toString() const;
63
64 // If you want to serialize this class without nesting, use this helper
66
67private:
68 // read/write map_id field
69 bool read_map_id(yarp::os::idl::WireReader& reader);
70 bool write_map_id(const yarp::os::idl::WireWriter& writer) const;
71 bool nested_read_map_id(yarp::os::idl::WireReader& reader);
72 bool nested_write_map_id(const yarp::os::idl::WireWriter& writer) const;
73
74 // read/write points field
75 bool read_points(yarp::os::idl::WireReader& reader);
76 bool write_points(const yarp::os::idl::WireWriter& writer) const;
77 bool nested_read_points(yarp::os::idl::WireReader& reader);
78 bool nested_write_points(const yarp::os::idl::WireWriter& writer) const;
79
80 // read/write description field
81 bool read_description(yarp::os::idl::WireReader& reader);
82 bool write_description(const yarp::os::idl::WireWriter& writer) const;
83 bool nested_read_description(yarp::os::idl::WireReader& reader);
84 bool nested_write_description(const yarp::os::idl::WireWriter& writer) const;
85};
86
87} // namespace yarp::dev
88
89#endif // YARP_THRIFT_GENERATOR_STRUCT_MAP2DAREADATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
yarp::os::idl::Unwrapped< Map2DAreaData > 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.
typename vec2D_selector< T >::type Vec2D
Definition Vec2D.h:104
#define YARP_dev_API
Definition api.h:18