YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ProcessorInfoData.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_PROCESSORINFODATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_PROCESSORINFODATA_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 architecture{};
30 std::string model{};
31 std::string vendor{};
32 std::int32_t family{0};
33 std::int32_t modelNumber{0};
34 std::int32_t cores{0};
35 std::int32_t siblings{0};
36 double frequency{0.0};
37
38public:
39 // Default constructor
40 ProcessorInfoData() = default;
41
42 // Constructor with field values
43 ProcessorInfoData(const std::string& architecture,
44 const std::string& model,
45 const std::string& vendor,
46 const std::int32_t family,
47 const std::int32_t modelNumber,
48 const std::int32_t cores,
49 const std::int32_t siblings,
50 const double frequency);
51
52 // Read structure on a Wire
53 bool read(yarp::os::idl::WireReader& reader) override;
54
55 // Read structure on a Connection
56 bool read(yarp::os::ConnectionReader& connection) override;
57
58 // Write structure on a Wire
59 bool write(const yarp::os::idl::WireWriter& writer) const override;
60
61 // Write structure on a Connection
62 bool write(yarp::os::ConnectionWriter& connection) const override;
63
64 // Convert to a printable string
65 std::string toString() const;
66
67 // If you want to serialize this class without nesting, use this helper
69
70private:
71 // read/write architecture field
72 bool read_architecture(yarp::os::idl::WireReader& reader);
73 bool write_architecture(const yarp::os::idl::WireWriter& writer) const;
74 bool nested_read_architecture(yarp::os::idl::WireReader& reader);
75 bool nested_write_architecture(const yarp::os::idl::WireWriter& writer) const;
76
77 // read/write model field
78 bool read_model(yarp::os::idl::WireReader& reader);
79 bool write_model(const yarp::os::idl::WireWriter& writer) const;
80 bool nested_read_model(yarp::os::idl::WireReader& reader);
81 bool nested_write_model(const yarp::os::idl::WireWriter& writer) const;
82
83 // read/write vendor field
84 bool read_vendor(yarp::os::idl::WireReader& reader);
85 bool write_vendor(const yarp::os::idl::WireWriter& writer) const;
86 bool nested_read_vendor(yarp::os::idl::WireReader& reader);
87 bool nested_write_vendor(const yarp::os::idl::WireWriter& writer) const;
88
89 // read/write family field
90 bool read_family(yarp::os::idl::WireReader& reader);
91 bool write_family(const yarp::os::idl::WireWriter& writer) const;
92 bool nested_read_family(yarp::os::idl::WireReader& reader);
93 bool nested_write_family(const yarp::os::idl::WireWriter& writer) const;
94
95 // read/write modelNumber field
96 bool read_modelNumber(yarp::os::idl::WireReader& reader);
97 bool write_modelNumber(const yarp::os::idl::WireWriter& writer) const;
98 bool nested_read_modelNumber(yarp::os::idl::WireReader& reader);
99 bool nested_write_modelNumber(const yarp::os::idl::WireWriter& writer) const;
100
101 // read/write cores field
102 bool read_cores(yarp::os::idl::WireReader& reader);
103 bool write_cores(const yarp::os::idl::WireWriter& writer) const;
104 bool nested_read_cores(yarp::os::idl::WireReader& reader);
105 bool nested_write_cores(const yarp::os::idl::WireWriter& writer) const;
106
107 // read/write siblings field
108 bool read_siblings(yarp::os::idl::WireReader& reader);
109 bool write_siblings(const yarp::os::idl::WireWriter& writer) const;
110 bool nested_read_siblings(yarp::os::idl::WireReader& reader);
111 bool nested_write_siblings(const yarp::os::idl::WireWriter& writer) const;
112
113 // read/write frequency field
114 bool read_frequency(yarp::os::idl::WireReader& reader);
115 bool write_frequency(const yarp::os::idl::WireWriter& writer) const;
116 bool nested_read_frequency(yarp::os::idl::WireReader& reader);
117 bool nested_write_frequency(const yarp::os::idl::WireWriter& writer) const;
118};
119
120} // namespace yarp::os
121
122#endif // YARP_THRIFT_GENERATOR_STRUCT_PROCESSORINFODATA_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 processor information.
yarp::os::idl::Unwrapped< ProcessorInfoData > 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