YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Map2DPathData.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_MAP2DPATHDATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_MAP2DPATHDATA_H
13
14#include <yarp/dev/api.h>
15
16#include <yarp/os/Wire.h>
19
20namespace yarp::dev {
21
24{
25public:
26 // Fields
30 std::vector<yarp::dev::Nav2D::Map2DLocation> waypoints{};
34 std::string description{};
35
36 // Default constructor
37 Map2DPathData() = default;
38
39 // Constructor with field values
40 Map2DPathData(const std::vector<yarp::dev::Nav2D::Map2DLocation>& waypoints,
41 const std::string& description);
42
43 // Read structure on a Wire
44 bool read(yarp::os::idl::WireReader& reader) override;
45
46 // Read structure on a Connection
47 bool read(yarp::os::ConnectionReader& connection) override;
48
49 // Write structure on a Wire
50 bool write(const yarp::os::idl::WireWriter& writer) const override;
51
52 // Write structure on a Connection
53 bool write(yarp::os::ConnectionWriter& connection) const override;
54
55 // Convert to a printable string
56 std::string toString() const;
57
58 // If you want to serialize this class without nesting, use this helper
60
61private:
62 // read/write waypoints field
63 bool read_waypoints(yarp::os::idl::WireReader& reader);
64 bool write_waypoints(const yarp::os::idl::WireWriter& writer) const;
65 bool nested_read_waypoints(yarp::os::idl::WireReader& reader);
66 bool nested_write_waypoints(const yarp::os::idl::WireWriter& writer) const;
67
68 // read/write description field
69 bool read_description(yarp::os::idl::WireReader& reader);
70 bool write_description(const yarp::os::idl::WireWriter& writer) const;
71 bool nested_read_description(yarp::os::idl::WireReader& reader);
72 bool nested_write_description(const yarp::os::idl::WireWriter& writer) const;
73};
74
75} // namespace yarp::dev
76
77#endif // YARP_THRIFT_GENERATOR_STRUCT_MAP2DPATHDATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
contains the definition of a Map2DLocation type
yarp::os::idl::Unwrapped< Map2DPathData > 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.
Definition jointData.cpp:13
#define YARP_dev_API
Definition api.h:18