YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
SystemInfo.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_OS_SYSTEMINFO_H
8#define YARP_OS_SYSTEMINFO_H
9
11
12#include <string>
13
14
15namespace yarp::os {
16
25{
26private:
27 using SystemInfoData::read;
28 using SystemInfoData::write;
29public:
30 typedef int capacity_t;
38
39public:
44 static MemoryInfo getMemoryInfo();
45
50 static StorageInfo getStorageInfo();
51
56 static ProcessorInfo getProcessorInfo();
57
62 static PlatformInfo getPlatformInfo();
63
68 static LoadInfo getLoadInfo();
69
74 static UserInfo getUserInfo();
75
83 static ProcessInfo getProcessInfo(int pid = 0);
84
85 // static NetworkInfo getNetworkInfo();
86
91 void updateSystemInfo();
92
98 bool read(yarp::os::ConnectionReader& connection) override;
99
105 bool write(yarp::os::ConnectionWriter& connection) const override;
106
107};
108
109
110} // namespace yarp::os
111
112#endif // YARP_OS_SYSTEMINFO_H
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,...
A class to get the system (platform) status such as available memory, storage, CPU load and etc.
Definition SystemInfo.h:25
yarp::os::UserInfoData UserInfo
Definition SystemInfo.h:37
yarp::os::ProcessInfoData ProcessInfo
Definition SystemInfo.h:31
yarp::os::MemoryInfoData MemoryInfo
Definition SystemInfo.h:32
yarp::os::PlatformInfoData PlatformInfo
Definition SystemInfo.h:36
yarp::os::ProcessorInfoData ProcessorInfo
Definition SystemInfo.h:34
yarp::os::StorageInfoData StorageInfo
Definition SystemInfo.h:33
yarp::os::LoadInfoData LoadInfo
Definition SystemInfo.h:35
Holds the current user information.
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18