NRE::System::SystemInfo Class Reference

Represent all informations from the user system. More...

#include <NRE_SystemInfo.hpp>

Public Member Functions

 SystemInfo ()
 
Utility::String const & getCPUName () const
 
Utility::String const & getArchitecture () const
 
std::size_t getNbProcessors () const
 
std::size_t getMemorySize () const
 
std::size_t getMemoryUsed () const
 
std::size_t getMemoryUsedByProcess () const
 
void setCPUName (Utility::String const &name)
 
void setArchitecture (Utility::String const &arc)
 
void setNbProcessors (std::size_t nb)
 
void setMemorySize (std::size_t size)
 
void setMemoryUsed (std::size_t used)
 
void setMemoryUsedByProcess (std::size_t used)
 
Utility::String toString () const
 

Detailed Description

Represent all informations from the user system.

Constructor & Destructor Documentation

NRE::System::SystemInfo::SystemInfo ( )

Construct an empty system information set

Member Function Documentation

Utility::String const& NRE::System::SystemInfo::getArchitecture ( ) const
Returns
the System Architecture
Utility::String const& NRE::System::SystemInfo::getCPUName ( ) const
Returns
the CPU's name
std::size_t NRE::System::SystemInfo::getMemorySize ( ) const
Returns
the memory size
std::size_t NRE::System::SystemInfo::getMemoryUsed ( ) const
Returns
the memory used
std::size_t NRE::System::SystemInfo::getMemoryUsedByProcess ( ) const
Returns
the memory used by the current process
std::size_t NRE::System::SystemInfo::getNbProcessors ( ) const
Returns
the number of CPU
void NRE::System::SystemInfo::setArchitecture ( Utility::String const &  arc)

Set the architecture value

Parameters
arcthe new architecture value
void NRE::System::SystemInfo::setCPUName ( Utility::String const &  name)

Set the cpu name value

Parameters
namethe new cpu's name
void NRE::System::SystemInfo::setMemorySize ( std::size_t  size)

Set the memory size

Parameters
sizethe new memory size
void NRE::System::SystemInfo::setMemoryUsed ( std::size_t  used)

Set the memory used size

Parameters
usedthe new memory used
void NRE::System::SystemInfo::setMemoryUsedByProcess ( std::size_t  used)

Set the memory used by this process value

Parameters
usedthe new memory used by process
void NRE::System::SystemInfo::setNbProcessors ( std::size_t  nb)

Set the number of processors

Parameters
nbthe new number of processors
String NRE::System::SystemInfo::toString ( ) const

Convert the system info into a string

Returns
the converted system info

The documentation for this class was generated from the following files: