|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
46 mPriv(
new Private(
this))
105 mPriv->updateSystemInfo();
virtual void appendFloat64(yarp::conf::float64_t data)=0
Send a representation of a 64-bit floating point number to the network connection.
static PlatformInfo getPlatformInfo()
getPlatformInfo
void fromString(const std::string &txt, bool wipe=true)
Interprets a string as a list of properties.
static StorageInfo getStorageInfo()
getStorageInfo
static MemoryInfo getMemoryInfo()
getMemoryInfo
SystemInfoSerializer *const parent
A class to get the system (platform) status such as available memory, storage, CPU load and etc.
yarp::os::SystemInfo::ProcessorInfo processor
system processor type information
yarp::os::SystemInfo::StorageInfo storage
system storage information
virtual yarp::conf::float64_t expectFloat64()=0
Read a 64-bit floating point number from the network connection.
virtual bool isError() const =0
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
Private(SystemInfoSerializer *parent)
yarp::os::SystemInfo::MemoryInfo memory
system memory information
virtual ~SystemInfoSerializer()
~SystemInfoSerializer deconstructor
std::string toString() const override
Return a standard text representation of the content of the object.
An interface for writing to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
reads from a ConnectionReader and fill into the SystemInfo structs.
yarp::os::SystemInfo::LoadInfo load
current cpu load information
virtual void appendInt32(std::int32_t data)=0
Send a representation of a 32-bit integer to the network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
write the SystemInfo structs using a ConnectionWriter.
An interface for reading from a network connection.
A helper class to pass the SystemInfo object around the YARP network.
static UserInfo getUserInfo()
getUserInfo
An interface to the operating system, including Port based communication.
virtual std::string expectText(const char terminatingChar='\n')=0
Read some text from the network connection.
static ProcessorInfo getProcessorInfo()
getProcessorInfo
yarp::os::SystemInfo::UserInfo user
current user information
SystemInfoSerializer()
SystemInfoSerializer constructor.
yarp::os::SystemInfo::PlatformInfo platform
operating system information
static LoadInfo getLoadInfo()
getLoadInfo
virtual void appendText(const std::string &str, const char terminate='\n')=0
Send a terminated string to the network connection.
The StorageInfo struct holds the system storage information.
The LoadInfo struct holds the current cpu load information.