YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
SystemInfoData.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_SYSTEMINFODATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_SYSTEMINFODATA_H
13
14#include <yarp/os/api.h>
15
16#include <yarp/os/Wire.h>
25
26namespace yarp::os {
27
34{
35public:
36 // Fields
38 StorageInfoData storage{};
39 ProcessorInfoData processor{};
41 PlatformInfoData platform{};
43 ProcessInfoData process{};
44
45public:
46 // Default constructor
47 SystemInfoData() = default;
48
49 // Constructor with field values
50 SystemInfoData(const MemoryInfoData& memory,
51 const StorageInfoData& storage,
52 const ProcessorInfoData& processor,
53 const LoadInfoData& load,
54 const PlatformInfoData& platform,
55 const UserInfoData& user,
56 const ProcessInfoData& process);
57
58 // Read structure on a Wire
59 bool read(yarp::os::idl::WireReader& reader) override;
60
61 // Read structure on a Connection
62 bool read(yarp::os::ConnectionReader& connection) override;
63
64 // Write structure on a Wire
65 bool write(const yarp::os::idl::WireWriter& writer) const override;
66
67 // Write structure on a Connection
68 bool write(yarp::os::ConnectionWriter& connection) const override;
69
70 // Convert to a printable string
71 std::string toString() const;
72
73 // If you want to serialize this class without nesting, use this helper
75
76private:
77 // read/write memory field
78 bool read_memory(yarp::os::idl::WireReader& reader);
79 bool write_memory(const yarp::os::idl::WireWriter& writer) const;
80 bool nested_read_memory(yarp::os::idl::WireReader& reader);
81 bool nested_write_memory(const yarp::os::idl::WireWriter& writer) const;
82
83 // read/write storage field
84 bool read_storage(yarp::os::idl::WireReader& reader);
85 bool write_storage(const yarp::os::idl::WireWriter& writer) const;
86 bool nested_read_storage(yarp::os::idl::WireReader& reader);
87 bool nested_write_storage(const yarp::os::idl::WireWriter& writer) const;
88
89 // read/write processor field
90 bool read_processor(yarp::os::idl::WireReader& reader);
91 bool write_processor(const yarp::os::idl::WireWriter& writer) const;
92 bool nested_read_processor(yarp::os::idl::WireReader& reader);
93 bool nested_write_processor(const yarp::os::idl::WireWriter& writer) const;
94
95 // read/write load field
96 bool read_load(yarp::os::idl::WireReader& reader);
97 bool write_load(const yarp::os::idl::WireWriter& writer) const;
98 bool nested_read_load(yarp::os::idl::WireReader& reader);
99 bool nested_write_load(const yarp::os::idl::WireWriter& writer) const;
100
101 // read/write platform field
102 bool read_platform(yarp::os::idl::WireReader& reader);
103 bool write_platform(const yarp::os::idl::WireWriter& writer) const;
104 bool nested_read_platform(yarp::os::idl::WireReader& reader);
105 bool nested_write_platform(const yarp::os::idl::WireWriter& writer) const;
106
107 // read/write user field
108 bool read_user(yarp::os::idl::WireReader& reader);
109 bool write_user(const yarp::os::idl::WireWriter& writer) const;
110 bool nested_read_user(yarp::os::idl::WireReader& reader);
111 bool nested_write_user(const yarp::os::idl::WireWriter& writer) const;
112
113 // read/write process field
114 bool read_process(yarp::os::idl::WireReader& reader);
115 bool write_process(const yarp::os::idl::WireWriter& writer) const;
116 bool nested_read_process(yarp::os::idl::WireReader& reader);
117 bool nested_write_process(const yarp::os::idl::WireWriter& writer) const;
118};
119
120} // namespace yarp::os
121
122#endif // YARP_THRIFT_GENERATOR_STRUCT_SYSTEMINFODATA_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 current cpu load information.
Holds the system memory information.
Holds the operating system information.
Holds the operating system process information.
Holds the processor information.
Holds the system storage information.
Aggregates all the system (platform) status information, such as available memory,...
yarp::os::idl::Unwrapped< SystemInfoData > unwrapped
Holds the current user information.
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