YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PlatformInfoData.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_PLATFORMINFODATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_PLATFORMINFODATA_H
13
14#include <yarp/os/api.h>
15
16#include <yarp/os/Wire.h>
18
19namespace yarp::os {
20
26{
27public:
28 // Fields
29 std::string name{};
30 std::string distribution{};
31 std::string release{};
32 std::string codename{};
33 std::string kernel{};
34 std::string environmentVars{};
35
36public:
37 // Default constructor
38 PlatformInfoData() = default;
39
40 // Constructor with field values
41 PlatformInfoData(const std::string& name,
42 const std::string& distribution,
43 const std::string& release,
44 const std::string& codename,
45 const std::string& kernel,
46 const std::string& environmentVars);
47
48 // Read structure on a Wire
49 bool read(yarp::os::idl::WireReader& reader) override;
50
51 // Read structure on a Connection
52 bool read(yarp::os::ConnectionReader& connection) override;
53
54 // Write structure on a Wire
55 bool write(const yarp::os::idl::WireWriter& writer) const override;
56
57 // Write structure on a Connection
58 bool write(yarp::os::ConnectionWriter& connection) const override;
59
60 // Convert to a printable string
61 std::string toString() const;
62
63 // If you want to serialize this class without nesting, use this helper
65
66private:
67 // read/write name field
68 bool read_name(yarp::os::idl::WireReader& reader);
69 bool write_name(const yarp::os::idl::WireWriter& writer) const;
70 bool nested_read_name(yarp::os::idl::WireReader& reader);
71 bool nested_write_name(const yarp::os::idl::WireWriter& writer) const;
72
73 // read/write distribution field
74 bool read_distribution(yarp::os::idl::WireReader& reader);
75 bool write_distribution(const yarp::os::idl::WireWriter& writer) const;
76 bool nested_read_distribution(yarp::os::idl::WireReader& reader);
77 bool nested_write_distribution(const yarp::os::idl::WireWriter& writer) const;
78
79 // read/write release field
80 bool read_release(yarp::os::idl::WireReader& reader);
81 bool write_release(const yarp::os::idl::WireWriter& writer) const;
82 bool nested_read_release(yarp::os::idl::WireReader& reader);
83 bool nested_write_release(const yarp::os::idl::WireWriter& writer) const;
84
85 // read/write codename field
86 bool read_codename(yarp::os::idl::WireReader& reader);
87 bool write_codename(const yarp::os::idl::WireWriter& writer) const;
88 bool nested_read_codename(yarp::os::idl::WireReader& reader);
89 bool nested_write_codename(const yarp::os::idl::WireWriter& writer) const;
90
91 // read/write kernel field
92 bool read_kernel(yarp::os::idl::WireReader& reader);
93 bool write_kernel(const yarp::os::idl::WireWriter& writer) const;
94 bool nested_read_kernel(yarp::os::idl::WireReader& reader);
95 bool nested_write_kernel(const yarp::os::idl::WireWriter& writer) const;
96
97 // read/write environmentVars field
98 bool read_environmentVars(yarp::os::idl::WireReader& reader);
99 bool write_environmentVars(const yarp::os::idl::WireWriter& writer) const;
100 bool nested_read_environmentVars(yarp::os::idl::WireReader& reader);
101 bool nested_write_environmentVars(const yarp::os::idl::WireWriter& writer) const;
102};
103
104} // namespace yarp::os
105
106#endif // YARP_THRIFT_GENERATOR_STRUCT_PLATFORMINFODATA_H
std::string toString(const T &value)
convert an arbitrary type to string.
An interface for reading from a network connection.
An interface for writing to a network connection.
Holds the operating system information.
yarp::os::idl::Unwrapped< PlatformInfoData > unwrapped
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
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18