Queries system software and hardware capabilities of the computer. Values are cached so there is low overhead in calling these functions more than once.
More...
#include <System.h>
|
static bool | hasSse2 () |
| Returns whether the system supports the SSE2 instruction set. More...
|
|
static bool | hasSse3 () |
| Returns whether the system supports the SSE3 instruction set. More...
|
|
static bool | hasSse4_1 () |
| Returns whether the system supports the SSE4.1 instruction set. Inaccurate on MSW x64. More...
|
|
static bool | hasSse4_2 () |
| Returns whether the system supports the SSE4.2 instruction set. Inaccurate on MSW x64. More...
|
|
static bool | hasX86_64 () |
| Returns whether the system supports the x86-64 instruction set. Inaccurate on MSW x64. More...
|
|
static bool | hasArm () |
| Returns whether the system supports the ARM instruction set. More...
|
|
static int | getNumCpus () |
| Returns the number of physical processors in the system. A single processor dual core machine returns 1. More...
|
|
static int | getNumCores () |
| 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. More...
|
|
static int | getOsMajorVersion () |
|
static int | getOsMinorVersion () |
|
static int | getOsBugFixVersion () |
|
static bool | hasMultiTouch () |
| 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. More...
|
|
static int32_t | getMaxMultiTouchPoints () |
| Returns the maximum number of simultaneous touches supported by the system's MultiTouch implementation. Only truly accurate on Windows 7. More...
|
|
static std::string | demangleTypeName (const char *mangledName) |
| Returns the result of. More...
|
|
static std::vector
< NetworkAdapter > | getNetworkAdapters () |
| Returns a list of the network adapters associated with the machine. Not cached. More...
|
|
static std::string | getIpAddress () |
| 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". More...
|
|
Queries system software and hardware capabilities of the computer. Values are cached so there is low overhead in calling these functions more than once.
bool cinder::System::hasSse2 |
( |
| ) |
|
|
static |
Returns whether the system supports the SSE2 instruction set.
bool cinder::System::hasSse3 |
( |
| ) |
|
|
static |
Returns whether the system supports the SSE3 instruction set.
bool cinder::System::hasSse4_1 |
( |
| ) |
|
|
static |
Returns whether the system supports the SSE4.1 instruction set. Inaccurate on MSW x64.
bool cinder::System::hasSse4_2 |
( |
| ) |
|
|
static |
Returns whether the system supports the SSE4.2 instruction set. Inaccurate on MSW x64.
bool cinder::System::hasX86_64 |
( |
| ) |
|
|
static |
Returns whether the system supports the x86-64 instruction set. Inaccurate on MSW x64.
bool cinder::System::hasArm |
( |
| ) |
|
|
static |
Returns whether the system supports the ARM instruction set.
int cinder::System::getNumCpus |
( |
| ) |
|
|
static |
Returns the number of physical processors in the system. A single processor dual core machine returns 1.
int cinder::System::getNumCores |
( |
| ) |
|
|
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.
int cinder::System::getOsMajorVersion |
( |
| ) |
|
|
static |
Returns the major version of the operating system. For version 10.5.8
, this is 10
. For Windows Vista this is 6. Refer to the MSDN documentation for the OSVERSIONINFOEX
struct for Windows meanings
int cinder::System::getOsMinorVersion |
( |
| ) |
|
|
static |
Returns the minor version of the operating system. For version 10.5.8
, this is 5
. For Windows Vista this is 0. Refer to the MSDN documentation for the OSVERSIONINFOEX
struct for Windows meanings
int cinder::System::getOsBugFixVersion |
( |
| ) |
|
|
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
bool cinder::System::hasMultiTouch |
( |
| ) |
|
|
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.
int32_t cinder::System::getMaxMultiTouchPoints |
( |
| ) |
|
|
static |
Returns the maximum number of simultaneous touches supported by the system's MultiTouch implementation. Only truly accurate on Windows 7.
string cinder::System::demangleTypeName |
( |
const char * |
mangledName | ) |
|
|
static |
Returns the result of.
typeid( someType ).
name()
as a platform-specific, human readable string.
Returns a list of the network adapters associated with the machine. Not cached.
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".
- See also
- getNetworkAdapaters().
The documentation for this class was generated from the following files: