YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ProcessInfoData.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_PROCESSINFODATA_H
12#define YARP_THRIFT_GENERATOR_STRUCT_PROCESSINFODATA_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 arguments{};
31 std::int32_t schedPolicy{0};
32 std::int32_t schedPriority{0};
33 std::int32_t pid{0};
34
35public:
36 // Default constructor
37 ProcessInfoData() = default;
38
39 // Constructor with field values
40 ProcessInfoData(const std::string& name,
41 const std::string& arguments,
42 const std::int32_t schedPolicy,
43 const std::int32_t schedPriority,
44 const std::int32_t pid);
45
46 // Read structure on a Wire
47 bool read(yarp::os::idl::WireReader& reader) override;
48
49 // Read structure on a Connection
50 bool read(yarp::os::ConnectionReader& connection) override;
51
52 // Write structure on a Wire
53 bool write(const yarp::os::idl::WireWriter& writer) const override;
54
55 // Write structure on a Connection
56 bool write(yarp::os::ConnectionWriter& connection) const override;
57
58 // Convert to a printable string
59 std::string toString() const;
60
61 // If you want to serialize this class without nesting, use this helper
63
64private:
65 // read/write name field
66 bool read_name(yarp::os::idl::WireReader& reader);
67 bool write_name(const yarp::os::idl::WireWriter& writer) const;
68 bool nested_read_name(yarp::os::idl::WireReader& reader);
69 bool nested_write_name(const yarp::os::idl::WireWriter& writer) const;
70
71 // read/write arguments field
72 bool read_arguments(yarp::os::idl::WireReader& reader);
73 bool write_arguments(const yarp::os::idl::WireWriter& writer) const;
74 bool nested_read_arguments(yarp::os::idl::WireReader& reader);
75 bool nested_write_arguments(const yarp::os::idl::WireWriter& writer) const;
76
77 // read/write schedPolicy field
78 bool read_schedPolicy(yarp::os::idl::WireReader& reader);
79 bool write_schedPolicy(const yarp::os::idl::WireWriter& writer) const;
80 bool nested_read_schedPolicy(yarp::os::idl::WireReader& reader);
81 bool nested_write_schedPolicy(const yarp::os::idl::WireWriter& writer) const;
82
83 // read/write schedPriority field
84 bool read_schedPriority(yarp::os::idl::WireReader& reader);
85 bool write_schedPriority(const yarp::os::idl::WireWriter& writer) const;
86 bool nested_read_schedPriority(yarp::os::idl::WireReader& reader);
87 bool nested_write_schedPriority(const yarp::os::idl::WireWriter& writer) const;
88
89 // read/write pid field
90 bool read_pid(yarp::os::idl::WireReader& reader);
91 bool write_pid(const yarp::os::idl::WireWriter& writer) const;
92 bool nested_read_pid(yarp::os::idl::WireReader& reader);
93 bool nested_write_pid(const yarp::os::idl::WireWriter& writer) const;
94};
95
96} // namespace yarp::os
97
98#endif // YARP_THRIFT_GENERATOR_STRUCT_PROCESSINFODATA_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 process information.
yarp::os::idl::Unwrapped< ProcessInfoData > 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