YARP
Yet Another Robot Platform
SystemInfoSerializer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 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
yarp::os::Portable
This is a base class for objects that can be both read from and be written to the YARP network.
Definition: Portable.h:29
yarp::sig::file::read
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
Definition: ImageFile.cpp:827
Portable.h
yarp::os::SystemInfo::MemoryInfo
The MemoryInfo struct holds the system memory information.
Definition: SystemInfo.h:37
yarp::os::SystemInfo::PlatformInfo
The PlatformInfo struct holds the operating system information.
Definition: SystemInfo.h:84
YARP_os_API
#define YARP_os_API
Definition: api.h:19
yarp::os::SystemInfoSerializer::processor
yarp::os::SystemInfo::ProcessorInfo processor
system processor type information
Definition: SystemInfoSerializer.h:63
yarp::os::SystemInfoSerializer::storage
yarp::os::SystemInfo::StorageInfo storage
system storage information
Definition: SystemInfoSerializer.h:58
yarp::os::SystemInfo::UserInfo
The UserInfo struct holds the current user information.
Definition: SystemInfo.h:97
yarp::os::SystemInfoSerializer::memory
yarp::os::SystemInfo::MemoryInfo memory
system memory information
Definition: SystemInfoSerializer.h:53
yarp::os::ConnectionWriter
An interface for writing to a network connection.
Definition: ConnectionWriter.h:40
yarp::os::SystemInfoSerializer::load
yarp::os::SystemInfo::LoadInfo load
current cpu load information
Definition: SystemInfoSerializer.h:73
yarp::os::ConnectionReader
An interface for reading from a network connection.
Definition: ConnectionReader.h:40
yarp::os::SystemInfo::ProcessorInfo
The ProcessorInfo struct holds the processor information.
Definition: SystemInfo.h:56
yarp::os::SystemInfoSerializer
A helper class to pass the SystemInfo object around the YARP network.
Definition: SystemInfoSerializer.h:24
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::os::SystemInfoSerializer::user
yarp::os::SystemInfo::UserInfo user
current user information
Definition: SystemInfoSerializer.h:78
yarp::os::SystemInfoSerializer::Private
Definition: SystemInfoSerializer.cpp:20
yarp::sig::file::write
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
Definition: ImageFile.cpp:971
yarp::os::SystemInfoSerializer::platform
yarp::os::SystemInfo::PlatformInfo platform
operating system information
Definition: SystemInfoSerializer.h:68
yarp::os::SystemInfo::StorageInfo
The StorageInfo struct holds the system storage information.
Definition: SystemInfo.h:47
yarp::os::SystemInfo::LoadInfo
The LoadInfo struct holds the current cpu load information.
Definition: SystemInfo.h:72
SystemInfo.h