MeVisLab Toolbox Reference
macSystemInfo.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef MAC_SYSTEM_INFO_H
14 #define MAC_SYSTEM_INFO_H
15 
17 
18 #if defined(__APPLE__)
19 
21 #include <stdint.h>
22 #include <string>
23 
24 namespace macos {
25 
28  {
29  public:
30 
32  static std::string getFullCurrentUserName();
33 
35  static std::string getCurrentUserName();
36 
38  static double getDoubleClickInterval();
39 
41  static unsigned int getMaximumRecentDocumentCount();
42 
44  static std::string getOSVersion();
45 
47  static uint32_t getOSVersionNumber();
48 
50  static std::string getOSBuildVersion();
51 
53  static std::string getComputerModelId();
54 
56 
58  static unsigned int getNumberOfActiveCPUs();
59 
61  static unsigned int getNumberOfCPUs();
62 
64  static unsigned int getNumberOfCPUPackages();
65 
67  static uint64_t getPhysicalMemorySize();
68 
70 
73  static uint64_t getFreeMemorySize();
74  };
75 
76 }
77 
78 #endif // __APPLE__
79 #endif // __macSystemInfo_H
System information.
Definition: macSystemInfo.h:28
static std::string getOSVersion()
Retrieve the Mac OS X operating system version (e.g. '10.5.7')
static std::string getCurrentUserName()
Retrieve the logon name of the current user.
static std::string getFullCurrentUserName()
Retrieve full name of the current user.
static unsigned int getNumberOfCPUPackages()
Return the number of physical processors.
static uint32_t getOSVersionNumber()
Retrieve the Mac OS X operating system version as hex digits number (e.g. 0x100507)
static uint64_t getFreeMemorySize()
Return number of bytes of free memory in the system.
static unsigned int getMaximumRecentDocumentCount()
Returns the maximum number of items that may be presented in the standard Open Recent menu.
static std::string getComputerModelId()
Retrieve the computer's model information (e.g. 'MacBookPro1,1' or 'unknown')
static double getDoubleClickInterval()
Returns the time, in seconds, in which a second mouse click must occur in order to be considered a do...
static unsigned int getNumberOfCPUs()
Return the number of processing cores available on the computer.
static std::string getOSBuildVersion()
Retrieve the Mac OS X operating system build version (e.g. '9J61' or 'unknown')
static unsigned int getNumberOfActiveCPUs()
Return the number of processors currently available for executing threads.
static uint64_t getPhysicalMemorySize()
Return number of bytes of physical memory in the system.
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.
AppleScript support.