A helper class to pass the SystemInfo object around the YARP network. More...
#include <yarp/os/SystemInfoSerializer.h>
Classes | |
class | Private |
Public Member Functions | |
SystemInfoSerializer () | |
SystemInfoSerializer constructor. | |
virtual | ~SystemInfoSerializer () |
~SystemInfoSerializer deconstructor | |
bool | read (yarp::os::ConnectionReader &connection) override |
reads from a ConnectionReader and fill into the SystemInfo structs. | |
bool | write (yarp::os::ConnectionWriter &connection) const override |
write the SystemInfo structs using a ConnectionWriter. | |
Public Member Functions inherited from yarp::os::Portable | |
virtual Type | getType () const |
Public Member Functions inherited from yarp::os::PortReader | |
virtual | ~PortReader () |
Destructor. | |
virtual Type | getReadType () const |
Public Member Functions inherited from yarp::os::PortWriter | |
virtual | ~PortWriter () |
Destructor. | |
virtual void | onCompletion () const |
This is called when the port has finished all writing operations. | |
virtual void | onCommencement () const |
This is called when the port is about to begin writing operations. | |
virtual yarp::os::Type | getWriteType () const |
Public Attributes | |
yarp::os::SystemInfo::MemoryInfo | memory |
system memory information | |
yarp::os::SystemInfo::StorageInfo | storage |
system storage information | |
yarp::os::SystemInfo::ProcessorInfo | processor |
system processor type information | |
yarp::os::SystemInfo::PlatformInfo | platform |
operating system information | |
yarp::os::SystemInfo::LoadInfo | load |
current cpu load information | |
yarp::os::SystemInfo::UserInfo | user |
current user information | |
Additional Inherited Members | |
Static Public Member Functions inherited from yarp::os::Portable | |
static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
Copy one portable to another, via writing and reading. | |
A helper class to pass the SystemInfo object around the YARP network.
Definition at line 19 of file SystemInfoSerializer.h.
SystemInfoSerializer::SystemInfoSerializer | ( | ) |
SystemInfoSerializer constructor.
Definition at line 39 of file SystemInfoSerializer.cpp.
|
virtual |
~SystemInfoSerializer deconstructor
Definition at line 47 of file SystemInfoSerializer.cpp.
|
overridevirtual |
reads from a ConnectionReader and fill into the SystemInfo structs.
connection | a ConnectionReader |
Implements yarp::os::Portable.
Definition at line 52 of file SystemInfoSerializer.cpp.
|
overridevirtual |
write the SystemInfo structs using a ConnectionWriter.
connection | a ConnectionWriter |
Implements yarp::os::Portable.
Definition at line 100 of file SystemInfoSerializer.cpp.
yarp::os::SystemInfo::LoadInfo yarp::os::SystemInfoSerializer::load |
current cpu load information
Definition at line 69 of file SystemInfoSerializer.h.
yarp::os::SystemInfo::MemoryInfo yarp::os::SystemInfoSerializer::memory |
system memory information
Definition at line 49 of file SystemInfoSerializer.h.
yarp::os::SystemInfo::PlatformInfo yarp::os::SystemInfoSerializer::platform |
operating system information
Definition at line 64 of file SystemInfoSerializer.h.
yarp::os::SystemInfo::ProcessorInfo yarp::os::SystemInfoSerializer::processor |
system processor type information
Definition at line 59 of file SystemInfoSerializer.h.
yarp::os::SystemInfo::StorageInfo yarp::os::SystemInfoSerializer::storage |
system storage information
Definition at line 54 of file SystemInfoSerializer.h.
yarp::os::SystemInfo::UserInfo yarp::os::SystemInfoSerializer::user |
current user information
Definition at line 74 of file SystemInfoSerializer.h.