![]() |
Cinder
0.9.1
|
#include <System.h>
Classes | |
class | NetworkAdapter |
Static Public Member Functions | |
static bool | hasSse2 () |
static bool | hasSse3 () |
static bool | hasSse4_1 () |
static bool | hasSse4_2 () |
static bool | hasX86_64 () |
static bool | hasArm () |
static int | getNumCpus () |
static int | getNumCores () |
static int | getOsMajorVersion () |
static int | getOsMinorVersion () |
static int | getOsBugFixVersion () |
static bool | hasMultiTouch () |
static int32_t | getMaxMultiTouchPoints () |
static std::string | demangleTypeName (const char *mangledName) |
static std::vector< NetworkAdapter > | getNetworkAdapters () |
static std::string | getIpAddress () |
static std::string | getSubnetMask () |
Queries system software and hardware capabilities of the computer. Values are cached so there is low overhead in calling these functions more than once.
|
static |
Returns whether the system supports the SSE2 instruction set.
|
static |
Returns whether the system supports the SSE3 instruction set.
|
static |
Returns whether the system supports the SSE4.1 instruction set. Inaccurate on MSW x64.
|
static |
Returns whether the system supports the SSE4.2 instruction set. Inaccurate on MSW x64.
|
static |
Returns whether the system supports the x86-64 instruction set. Inaccurate on MSW x64.
|
static |
Returns whether the system supports the ARM instruction set.
|
static |
Returns the number of physical processors in the system. A single processor dual core machine returns 1.
|
static |
Returns the number of cores (or logical processors) in the system. A single processor dual core machine returns 2. Inaccurate on MSW x64 and WinRT, where it returns the number of processors instead.
|
static |
|
static |
|
static |
Returns the bugfix version of the operating system. For version 10.5.8
, this is 8
. For Windows this corresponds to the major version of the service pack. So Service
Pack 2 returns 2
|
static |
Returns whether the system supports MultiTouch. Also returns true under Windows 7 in the presence of single touch support. Always returns true on Mac OS X Snow Leopard.
|
static |
Returns the maximum number of simultaneous touches supported by the system's MultiTouch implementation. Only truly accurate on Windows 7.
|
static |
Returns the result of.
as a platform-specific, human readable string.
|
static |
Returns a list of the network adapters associated with the machine. Not cached.
|
static |
Returns a best guess at the machine's "IP address". Not cached. Computers often have multiple IP addresses, but this will attempt to select the "best".
|
static |
Returns the subnet mask of the "best" network adapter, as found by getIpAddress(). This can be used to calculate the proper broadcast IP address for a network. Not cached.