YARP
Yet Another Robot Platform
SystemInfoSerializer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_OS_SYSTEMINFOSERIALIZER_H
11 #define YARP_OS_SYSTEMINFOSERIALIZER_H
12 
13 #include <yarp/os/Portable.h>
14 #include <yarp/os/SystemInfo.h>
15 
16 namespace yarp {
17 namespace os {
18 
24 {
25 public:
30 
34  virtual ~SystemInfoSerializer();
35 
41  bool read(yarp::os::ConnectionReader& connection) override;
42 
48  bool write(yarp::os::ConnectionWriter& connection) const override;
49 
54 
59 
64 
69 
74 
79 
80  // yarp::os::SystemInfo::NetworkInfo network;
81 
82 #ifndef DOXYGEN_SHOULD_SKIP_THIS
83 private:
84  class Private;
85  Private* mPriv;
86 #endif // DOXYGEN_SHOULD_SKIP_THIS
87 };
88 
89 } // namespace os
90 } // namespace yarp
91 
92 #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:29
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:920
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
Definition: ImageFile.cpp:1096
The main, catch-all namespace for YARP.
Definition: environment.h:25
The LoadInfo struct holds the current cpu load information.
Definition: SystemInfo.h:72
The MemoryInfo struct holds the system memory information.
Definition: SystemInfo.h:37
The PlatformInfo struct holds the operating system information.
Definition: SystemInfo.h:84
The ProcessorInfo struct holds the processor information.
Definition: SystemInfo.h:56
The StorageInfo struct holds the system storage information.
Definition: SystemInfo.h:47
The UserInfo struct holds the current user information.
Definition: SystemInfo.h:97
#define YARP_os_API
Definition: api.h:19