MeVisLab Toolbox Reference
macos::SystemInfo Class Reference

System information. More...

#include <macSystemInfo.h>

Static Public Member Functions

static std::string getFullCurrentUserName ()
 Retrieve full name of the current user. More...
 
static std::string getCurrentUserName ()
 Retrieve the logon name of the current user. More...
 
static double getDoubleClickInterval ()
 Returns the time, in seconds, in which a second mouse click must occur in order to be considered a double click. More...
 
static unsigned int getMaximumRecentDocumentCount ()
 Returns the maximum number of items that may be presented in the standard Open Recent menu. More...
 
static std::string getOSVersion ()
 Retrieve the Mac OS X operating system version (e.g. '10.5.7') More...
 
static uint32_t getOSVersionNumber ()
 Retrieve the Mac OS X operating system version as hex digits number (e.g. 0x100507) More...
 
static std::string getOSBuildVersion ()
 Retrieve the Mac OS X operating system build version (e.g. '9J61' or 'unknown') More...
 
static std::string getComputerModelId ()
 Retrieve the computer's model information (e.g. 'MacBookPro1,1' or 'unknown') More...
 
static unsigned int getNumberOfActiveCPUs ()
 Return the number of processors currently available for executing threads. More...
 
static unsigned int getNumberOfCPUs ()
 Return the number of processing cores available on the computer. More...
 
static unsigned int getNumberOfCPUPackages ()
 Return the number of physical processors. More...
 
static uint64_t getPhysicalMemorySize ()
 Return number of bytes of physical memory in the system. More...
 
static uint64_t getFreeMemorySize ()
 Return number of bytes of free memory in the system. More...
 

Detailed Description

System information.

Definition at line 27 of file macSystemInfo.h.

Member Function Documentation

◆ getComputerModelId()

static std::string macos::SystemInfo::getComputerModelId ( )
static

Retrieve the computer's model information (e.g. 'MacBookPro1,1' or 'unknown')

◆ getCurrentUserName()

static std::string macos::SystemInfo::getCurrentUserName ( )
static

Retrieve the logon name of the current user.

◆ getDoubleClickInterval()

static double macos::SystemInfo::getDoubleClickInterval ( )
static

Returns the time, in seconds, in which a second mouse click must occur in order to be considered a double click.

◆ getFreeMemorySize()

static uint64_t macos::SystemInfo::getFreeMemorySize ( )
static

Return number of bytes of free memory in the system.

The free memory is calculated using the following scheme: (vm_num_of_free_pages + vm_num_of_inactive_pages) * vm_page_size

◆ getFullCurrentUserName()

static std::string macos::SystemInfo::getFullCurrentUserName ( )
static

Retrieve full name of the current user.

◆ getMaximumRecentDocumentCount()

static unsigned int macos::SystemInfo::getMaximumRecentDocumentCount ( )
static

Returns the maximum number of items that may be presented in the standard Open Recent menu.

◆ getNumberOfActiveCPUs()

static unsigned int macos::SystemInfo::getNumberOfActiveCPUs ( )
static

Return the number of processors currently available for executing threads.

This is the number of cpus to use for distributing work!

◆ getNumberOfCPUPackages()

static unsigned int macos::SystemInfo::getNumberOfCPUPackages ( )
static

Return the number of physical processors.

◆ getNumberOfCPUs()

static unsigned int macos::SystemInfo::getNumberOfCPUs ( )
static

Return the number of processing cores available on the computer.

◆ getOSBuildVersion()

static std::string macos::SystemInfo::getOSBuildVersion ( )
static

Retrieve the Mac OS X operating system build version (e.g. '9J61' or 'unknown')

◆ getOSVersion()

static std::string macos::SystemInfo::getOSVersion ( )
static

Retrieve the Mac OS X operating system version (e.g. '10.5.7')

◆ getOSVersionNumber()

static uint32_t macos::SystemInfo::getOSVersionNumber ( )
static

Retrieve the Mac OS X operating system version as hex digits number (e.g. 0x100507)

◆ getPhysicalMemorySize()

static uint64_t macos::SystemInfo::getPhysicalMemorySize ( )
static

Return number of bytes of physical memory in the system.


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