gatb.core-API-0.0.0
SystemInfoCommon Class Reference

Abstract class for ISystemInfo interface. More...

#include <SystemInfoCommon.hpp>

Inheritance diagram for SystemInfoCommon:
Inheritance graph

Public Member Functions

std::string getVersion () const
 
std::string getBuildDate () const
 
std::string getBuildCompiler () const
 
std::string getBuildOptions () const
 
std::string getBuildSystem () const
 
std::string getHomeDirectory () const
 
u_int64_t getMemoryPhysicalFree () const
 
u_int64_t getMemoryProject () const
 
u_int64_t getMemorySelfUsed () const
 
u_int64_t getMemorySelfMaxUsed () const
 
virtual CpuInfocreateCpuInfo ()
 
- Public Member Functions inherited from ISystemInfo
virtual size_t getNbCores () const =0
 
virtual std::string getHostName () const =0
 
virtual u_int64_t getMemoryPhysicalTotal () const =0
 
virtual u_int64_t getMemoryPhysicalUsed () const =0
 
virtual u_int64_t getMemoryBuffers () const =0
 
virtual ~ISystemInfo ()
 

Detailed Description

Abstract class for ISystemInfo interface.

This class factorizes some methods with implementations common to several operating systems.

It is still abstract since it doesn't implement all methods of ISystemInfo

Member Function Documentation

ISystemInfo::CpuInfo * createCpuInfo ( )
virtual

Create a CpuInfo object

Returns
the created object.

Implements ISystemInfo.

std::string getBuildCompiler ( ) const
virtual

Returns the compiler name

Returns
the compiler name.

Implements ISystemInfo.

std::string getBuildDate ( ) const
virtual

Returns the date of the library generation.

Returns
the generation date.

Implements ISystemInfo.

std::string getBuildOptions ( ) const
virtual

Returns the compilation options

Returns
the compilation options.

Implements ISystemInfo.

std::string getBuildSystem ( ) const
virtual

Returns the operating system name used for the library generation

Returns
the os name.

Implements ISystemInfo.

std::string getHomeDirectory ( ) const
inlinevirtual

Returns home directory.

Returns
the home directory uri.

Implements ISystemInfo.

u_int64_t getMemoryPhysicalFree ( ) const
inlinevirtual

Get the size (in bytes) of the free physical memory

Returns
the free physical memory size

Implements ISystemInfo.

u_int64_t getMemoryProject ( ) const
inlinevirtual

Get a memory size (NOTE: in MBytes) for executing a program. It may be the whole physical memory, some part of it or a constant size.

Returns
the project memory size

Implements ISystemInfo.

u_int64_t getMemorySelfMaxUsed ( ) const
inlinevirtual

Get the size (in KBytes) of the memory used by the current process

Returns
the memory value

Implements ISystemInfo.

Reimplemented in SystemInfoLinux.

u_int64_t getMemorySelfUsed ( ) const
inlinevirtual

Get the size (in KBytes) of the memory used by the current process

Returns
the memory value

Implements ISystemInfo.

Reimplemented in SystemInfoMacos, and SystemInfoLinux.

std::string getVersion ( ) const
virtual

Returns the version of the library.

Returns
the version.

Implements ISystemInfo.


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