Contains methods for finding out about the current hardware and OS configuration. More...
Public Types | |
| enum | OperatingSystemType { UnknownOS = 0, MacOSX = 0x1000, Linux = 0x2000, Android = 0x3000, Win95 = 0x4001, Win98 = 0x4002, WinNT351 = 0x4103, WinNT40 = 0x4104, Win2000 = 0x4105, WinXP = 0x4106, WinVista = 0x4107, Windows7 = 0x4108, Windows = 0x4000, WindowsNT = 0x0100 } |
The set of possible results of the getOperatingSystemType() method. More... | |
Static Public Member Functions | |
| static String | getJUCEVersion () |
| Returns the current version of JUCE,. | |
| static OperatingSystemType | getOperatingSystemType () |
| Returns the type of operating system we're running on. | |
| static String | getOperatingSystemName () |
| Returns the name of the type of operating system we're running on. | |
| static bool | isOperatingSystem64Bit () |
| Returns true if the OS is 64-bit, or false for a 32-bit OS. | |
| static String | getLogonName () |
| Returns the current user's name, if available. | |
| static String | getFullUserName () |
| Returns the current user's full name, if available. | |
| static String | getComputerName () |
| Returns the host-name of the computer. | |
| static int | getCpuSpeedInMegaherz () |
| Returns the approximate CPU speed. | |
| static String | getCpuVendor () |
| Returns a string to indicate the CPU vendor. | |
| static bool | hasMMX () noexcept |
| Checks whether Intel MMX instructions are available. | |
| static bool | hasSSE () noexcept |
| Checks whether Intel SSE instructions are available. | |
| static bool | hasSSE2 () noexcept |
| Checks whether Intel SSE2 instructions are available. | |
| static bool | has3DNow () noexcept |
| Checks whether AMD 3DNOW instructions are available. | |
| static int | getNumCpus () noexcept |
| Returns the number of CPUs. | |
| static int | getMemorySizeInMegabytes () |
| Finds out how much RAM is in the machine. | |
| static int | getPageSize () |
| Returns the system page-size. | |
Contains methods for finding out about the current hardware and OS configuration.
The set of possible results of the getOperatingSystemType() method.
| UnknownOS | |
| MacOSX | |
| Linux | |
| Android | |
| Win95 | |
| Win98 | |
| WinNT351 | |
| WinNT40 | |
| Win2000 | |
| WinXP | |
| WinVista | |
| Windows7 | |
| Windows |
To test whether any version of Windows is running, you can use the expression ((getOperatingSystemType() & Windows) != 0). |
| WindowsNT |
To test whether the platform is Windows NT or later (i.e. not Win95 or 98), you can use the expression ((getOperatingSystemType() & WindowsNT) != 0). |
| static String SystemStats::getJUCEVersion | ( | ) | [static] |
Returns the current version of JUCE,.
See also the JUCE_VERSION, JUCE_MAJOR_VERSION and JUCE_MINOR_VERSION macros.
| static OperatingSystemType SystemStats::getOperatingSystemType | ( | ) | [static] |
Returns the type of operating system we're running on.
| static String SystemStats::getOperatingSystemName | ( | ) | [static] |
Returns the name of the type of operating system we're running on.
| static bool SystemStats::isOperatingSystem64Bit | ( | ) | [static] |
Returns true if the OS is 64-bit, or false for a 32-bit OS.
| static String SystemStats::getLogonName | ( | ) | [static] |
Returns the current user's name, if available.
| static String SystemStats::getFullUserName | ( | ) | [static] |
Returns the current user's full name, if available.
On some OSes, this may just return the same value as getLogonName().
| static String SystemStats::getComputerName | ( | ) | [static] |
Returns the host-name of the computer.
| static int SystemStats::getCpuSpeedInMegaherz | ( | ) | [static] |
Returns the approximate CPU speed.
| static String SystemStats::getCpuVendor | ( | ) | [static] |
Returns a string to indicate the CPU vendor.
Might not be known on some systems.
| static bool SystemStats::hasMMX | ( | ) | [static] |
Checks whether Intel MMX instructions are available.
| static bool SystemStats::hasSSE | ( | ) | [static] |
Checks whether Intel SSE instructions are available.
| static bool SystemStats::hasSSE2 | ( | ) | [static] |
Checks whether Intel SSE2 instructions are available.
| static bool SystemStats::has3DNow | ( | ) | [static] |
Checks whether AMD 3DNOW instructions are available.
| static int SystemStats::getNumCpus | ( | ) | [static] |
Returns the number of CPUs.
| static int SystemStats::getMemorySizeInMegabytes | ( | ) | [static] |
Finds out how much RAM is in the machine.
| static int SystemStats::getPageSize | ( | ) | [static] |
Returns the system page-size.
This is only used by programmers with beards.