MeVisLabToolboxReference
macx::SystemInfo Class Reference

System information. More...

#include <macSystemInfo.h>

List of all members.

Static Public Member Functions

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

Detailed Description

System information.

Definition at line 17 of file macSystemInfo.h.


Member Function Documentation

static std::string macx::SystemInfo::getComputerModelId ( ) [static]

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

static std::string macx::SystemInfo::getCurrentUserName ( ) [static]

Retrieve the logon name of the current user.

static double macx::SystemInfo::getDoubleClickInterval ( ) [static]

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

static uint64_t macx::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

static std::string macx::SystemInfo::getFullCurrentUserName ( ) [static]

Retrieve full name of the current user.

static unsigned int macx::SystemInfo::getMaximumRecentDocumentCount ( ) [static]

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

static unsigned int macx::SystemInfo::getNumberOfActiveCPUs ( ) [static]

Return the number of processors currently available for executing threads.

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

static unsigned int macx::SystemInfo::getNumberOfCPUPackages ( ) [static]

Return the number of physical processors.

static unsigned int macx::SystemInfo::getNumberOfCPUs ( ) [static]

Return the number of processing cores available on the computer.

static std::string macx::SystemInfo::getOSBuildVersion ( ) [static]

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

static std::string macx::SystemInfo::getOSVersion ( ) [static]

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

static uint32_t macx::SystemInfo::getOSVersionNumber ( ) [static]

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

static uint64_t macx::SystemInfo::getPhysicalMemorySize ( ) [static]

Return number of bytes of physical memory in the system.


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