MeVisLabToolboxReference
|
00001 // **InsertLicense** code author="Felix Ritter" version="1.0" 00002 00006 00007 #ifndef __macSystemInfo_H 00008 #define __macSystemInfo_H 00009 #if defined(__APPLE__) 00010 00011 #include <stdint.h> 00012 #include <string> 00013 00014 namespace macx { 00015 00017 class SystemInfo 00018 { 00019 public: 00020 00022 static std::string getFullCurrentUserName(); 00023 00025 static std::string getCurrentUserName(); 00026 00028 static double getDoubleClickInterval(); 00029 00031 static unsigned int getMaximumRecentDocumentCount(); 00032 00034 static std::string getOSVersion(); 00035 00037 static uint32_t getOSVersionNumber(); 00038 00040 static std::string getOSBuildVersion(); 00041 00043 static std::string getComputerModelId(); 00044 00046 00048 static unsigned int getNumberOfActiveCPUs(); 00049 00051 static unsigned int getNumberOfCPUs(); 00052 00054 static unsigned int getNumberOfCPUPackages(); 00055 00057 static uint64_t getPhysicalMemorySize(); 00058 00060 00063 static uint64_t getFreeMemorySize(); 00064 }; 00065 00066 } 00067 00068 #endif // __APPLE__ 00069 #endif // __macSystemInfo_H