YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yCalibrationParameters.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_YCALIBRATIONPARAMETERS_H
12#define YARP_THRIFT_GENERATOR_STRUCT_YCALIBRATIONPARAMETERS_H
13
14#include <yarp/os/Wire.h>
16
19{
20public:
21 // Fields
22 std::int32_t type{0};
23 double param1{0.0};
24 double param2{0.0};
25 double param3{0.0};
26 double param4{0.0};
27 double param5{0.0};
28 double paramZero{0.0};
29
30 // Default constructor
32
33 // Constructor with field values
34 yCalibrationParameters(const std::int32_t type,
35 const double param1,
36 const double param2,
37 const double param3,
38 const double param4,
39 const double param5,
40 const double paramZero);
41
42 // Read structure on a Wire
43 bool read(yarp::os::idl::WireReader& reader) override;
44
45 // Read structure on a Connection
46 bool read(yarp::os::ConnectionReader& connection) override;
47
48 // Write structure on a Wire
49 bool write(const yarp::os::idl::WireWriter& writer) const override;
50
51 // Write structure on a Connection
52 bool write(yarp::os::ConnectionWriter& connection) const override;
53
54 // Convert to a printable string
55 std::string toString() const;
56
57 // If you want to serialize this class without nesting, use this helper
59
60private:
61 // read/write type field
62 bool read_type(yarp::os::idl::WireReader& reader);
63 bool write_type(const yarp::os::idl::WireWriter& writer) const;
64 bool nested_read_type(yarp::os::idl::WireReader& reader);
65 bool nested_write_type(const yarp::os::idl::WireWriter& writer) const;
66
67 // read/write param1 field
68 bool read_param1(yarp::os::idl::WireReader& reader);
69 bool write_param1(const yarp::os::idl::WireWriter& writer) const;
70 bool nested_read_param1(yarp::os::idl::WireReader& reader);
71 bool nested_write_param1(const yarp::os::idl::WireWriter& writer) const;
72
73 // read/write param2 field
74 bool read_param2(yarp::os::idl::WireReader& reader);
75 bool write_param2(const yarp::os::idl::WireWriter& writer) const;
76 bool nested_read_param2(yarp::os::idl::WireReader& reader);
77 bool nested_write_param2(const yarp::os::idl::WireWriter& writer) const;
78
79 // read/write param3 field
80 bool read_param3(yarp::os::idl::WireReader& reader);
81 bool write_param3(const yarp::os::idl::WireWriter& writer) const;
82 bool nested_read_param3(yarp::os::idl::WireReader& reader);
83 bool nested_write_param3(const yarp::os::idl::WireWriter& writer) const;
84
85 // read/write param4 field
86 bool read_param4(yarp::os::idl::WireReader& reader);
87 bool write_param4(const yarp::os::idl::WireWriter& writer) const;
88 bool nested_read_param4(yarp::os::idl::WireReader& reader);
89 bool nested_write_param4(const yarp::os::idl::WireWriter& writer) const;
90
91 // read/write param5 field
92 bool read_param5(yarp::os::idl::WireReader& reader);
93 bool write_param5(const yarp::os::idl::WireWriter& writer) const;
94 bool nested_read_param5(yarp::os::idl::WireReader& reader);
95 bool nested_write_param5(const yarp::os::idl::WireWriter& writer) const;
96
97 // read/write paramZero field
98 bool read_paramZero(yarp::os::idl::WireReader& reader);
99 bool write_paramZero(const yarp::os::idl::WireWriter& writer) const;
100 bool nested_read_paramZero(yarp::os::idl::WireReader& reader);
101 bool nested_write_paramZero(const yarp::os::idl::WireWriter& writer) const;
102};
103
104#endif // YARP_THRIFT_GENERATOR_STRUCT_YCALIBRATIONPARAMETERS_H
bool read(yarp::os::idl::WireReader &reader) override
bool write(const yarp::os::idl::WireWriter &writer) const override
yCalibrationParameters()=default
yarp::os::idl::Unwrapped< yCalibrationParameters > 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