70 #if defined( CINDER_COCOA_TOUCH )
71 static bool isDeviceIphone();
72 static bool isDeviceIpad();
82 : mName( name ), mIpAddress( ip ) {}
93 enum { HAS_SSE2, HAS_SSE3, HAS_SSE4_1, HAS_SSE4_2, HAS_X86_64, HAS_ARM, PHYSICAL_CPUS, LOGICAL_CPUS, OS_MAJOR, OS_MINOR, OS_BUGFIX, MULTI_TOUCH, MAX_MULTI_TOUCH_POINTS,
94 #if defined( CINDER_COCOA_TOUCH)
100 static std::shared_ptr<System> instance();
101 static std::shared_ptr<System> sInstance;
103 bool mCachedValues[TOTAL_CACHE_TYPES];
104 bool mHasSSE2, mHasSSE3, mHasSSE4_1, mHasSSE4_2, mHasX86_64, mHasArm;
105 int mPhysicalCPUs, mLogicalCPUs;
106 int32_t mOSMajorVersion, mOSMinorVersion, mOSBugFixVersion;
108 uint32_t mMaxMultiTouchPoints;
109 #if defined( CINDER_MSW ) && ! defined( _WIN64 )
110 uint32_t mCPUID_EBX, mCPUID_ECX, mCPUID_EDX;
static bool hasSse4_2()
Returns whether the system supports the SSE4.2 instruction set. Inaccurate on MSW x64...
Definition: System.cpp:325
Queries system software and hardware capabilities of the computer. Values are cached so there is low ...
Definition: System.h:35
GLsizei const GLchar ** string
Definition: GLee.h:2427
static bool hasSse4_1()
Returns whether the system supports the SSE4.1 instruction set. Inaccurate on MSW x64...
Definition: System.cpp:307
static bool hasSse2()
Returns whether the system supports the SSE2 instruction set.
Definition: System.cpp:267
static int getNumCores()
Returns the number of cores (or logical processors) in the system. A single processor dual core machi...
Definition: System.cpp:430
static int32_t getMaxMultiTouchPoints()
Returns the maximum number of simultaneous touches supported by the system's MultiTouch implementatio...
Definition: System.cpp:559
static std::vector< NetworkAdapter > getNetworkAdapters()
Returns a list of the network adapters associated with the machine. Not cached.
Definition: System.cpp:600
static int getOsBugFixVersion()
Definition: System.cpp:501
static int getOsMinorVersion()
Definition: System.cpp:477
static bool hasX86_64()
Returns whether the system supports the x86-64 instruction set. Inaccurate on MSW x64...
Definition: System.cpp:360
NetworkAdapter(const std::string &name, const std::string &ip)
Definition: System.h:81
static int getOsMajorVersion()
Definition: System.cpp:453
const std::string & getName() const
Definition: System.h:78
std::ostream & operator<<(std::ostream &lhs, const ColorT< float > &rhs)
Definition: Color.cpp:203
GLuint const GLchar * name
Definition: GLee.h:2259
const std::string & getIpAddress() const
Definition: System.h:79
static int getNumCpus()
Returns the number of physical processors in the system. A single processor dual core machine returns...
Definition: System.cpp:383
static bool hasMultiTouch()
Returns whether the system supports MultiTouch. Also returns true under Windows 7 in the presence of ...
Definition: System.cpp:528
Represents a single Network Adapter of the system.
Definition: System.h:76
static std::string demangleTypeName(const char *mangledName)
Returns the result of.
Definition: System.cpp:587
static std::string getIpAddress()
Returns a best guess at the machine's "IP address". Not cached. Computers often have multiple IP addr...
Definition: System.cpp:690
static bool hasSse3()
Returns whether the system supports the SSE3 instruction set.
Definition: System.cpp:287
static bool hasArm()
Returns whether the system supports the ARM instruction set.
Definition: System.cpp:343