YARP
Yet Another Robot Platform
SystemInfoSerializer.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_SYSTEMINFOSERIALIZER_H
8 #define YARP_OS_SYSTEMINFOSERIALIZER_H
9 
10 #include <yarp/os/Portable.h>
11 #include <yarp/os/SystemInfo.h>
12 
13 namespace yarp {
14 namespace os {
15 
21 {
22 public:
27 
31  virtual ~SystemInfoSerializer();
32 
38  bool read(yarp::os::ConnectionReader& connection) override;
39 
45  bool write(yarp::os::ConnectionWriter& connection) const override;
46 
51 
56 
61 
66 
71 
76 
77  // yarp::os::SystemInfo::NetworkInfo network;
78 
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80 private:
81  class Private;
82  Private* mPriv;
83 #endif // DOXYGEN_SHOULD_SKIP_THIS
84 };
85 
86 } // namespace os
87 } // namespace yarp
88 
89 #endif // YARP_OS_SYSTEMINFOSERIALIZER_H
An interface for reading from a network connection.
An interface for writing to a network connection.
This is a base class for objects that can be both read from and be written to the YARP network.
Definition: Portable.h:26
A helper class to pass the SystemInfo object around the YARP network.
yarp::os::SystemInfo::LoadInfo load
current cpu load information
yarp::os::SystemInfo::UserInfo user
current user information
yarp::os::SystemInfo::StorageInfo storage
system storage information
yarp::os::SystemInfo::PlatformInfo platform
operating system information
yarp::os::SystemInfo::MemoryInfo memory
system memory information
yarp::os::SystemInfo::ProcessorInfo processor
system processor type information
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
Definition: ImageFile.cpp:923
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
Definition: ImageFile.cpp:1099
The main, catch-all namespace for YARP.
Definition: dirs.h:16
The LoadInfo struct holds the current cpu load information.
Definition: SystemInfo.h:69
The MemoryInfo struct holds the system memory information.
Definition: SystemInfo.h:34
The PlatformInfo struct holds the operating system information.
Definition: SystemInfo.h:81
The ProcessorInfo struct holds the processor information.
Definition: SystemInfo.h:53
The StorageInfo struct holds the system storage information.
Definition: SystemInfo.h:44
The UserInfo struct holds the current user information.
Definition: SystemInfo.h:94
#define YARP_os_API
Definition: api.h:18