Cinder  0.9.1
Classes | Static Public Member Functions | List of all members
cinder::System Class Reference

#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< NetworkAdaptergetNetworkAdapters ()
 
static std::string getIpAddress ()
 
static std::string getSubnetMask ()
 

Detailed Description

Queries system software and hardware capabilities of the computer. Values are cached so there is low overhead in calling these functions more than once.

Member Function Documentation

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.

vector< System::NetworkAdapter > cinder::System::getNetworkAdapters ( )
static

Returns a list of the network adapters associated with the machine. Not cached.

std::string cinder::System::getIpAddress ( )
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".

See also
getNetworkAdapaters().
std::string cinder::System::getSubnetMask ( )
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.

See also
getNetworkAdapaters().
getIpAddress().

The documentation for this class was generated from the following files: