HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SYS_Platform.h File Reference
#include "SYS_API.h"
#include "SYS_Types.h"
#include <string>
+ Include dependency graph for SYS_Platform.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

SYS_API void SYSgetProcessor (int &majortype, int &flags)
 
SYS_API int SYSgetProcessorCount ()
 
SYS_API const char * SYSgetOsProc ()
 Find the name of the operating system that Houdini was compiled for. More...
 
SYS_API std::string SYSgetRuntimeOSLabel ()
 Return a "nice" name of the current operating system. More...
 
SYS_API const char * SYSgetPlatformSpec ()
 Find the exact OS, 32-bit or 64-bit build, compiler version. More...
 
SYS_API exint SYSgetMemorySize ()
 Returns the amount of installed memory (not VM). More...
 
SYS_API std::string SYSgetCPUBrandString ()
 Returns a char* representing the manufacturerer's name. More...
 
SYS_API bool SYSisMBSD ()
 
SYS_API bool SYSisLinux ()
 
SYS_API bool SYSisWindows ()
 
SYS_API void SYSgetMACAddresses (unsigned char *&addresses, int &num_addresses)
 
SYS_API bool SYSgetMACAddress (unsigned char mac_address[6])
 
SYS_API bool SYSgetMACAddressAsInteger (int64 &mac_address)
 

Function Documentation

SYS_API std::string SYSgetCPUBrandString ( )

Returns a char* representing the manufacturerer's name.

SYS_API bool SYSgetMACAddress ( unsigned char  mac_address[6])

Return a single MAC address that we treat as the main MAC address for this machine. Returns false if no MAC address could be determined.

SYS_API bool SYSgetMACAddressAsInteger ( int64 mac_address)
SYS_API void SYSgetMACAddresses ( unsigned char *&  addresses,
int num_addresses 
)

Return the MAC addresses for all the deviced on this system. The caller is responsible to delete [] the addresses if num_addresses > 0.

SYS_API exint SYSgetMemorySize ( )

Returns the amount of installed memory (not VM).

SYS_API const char* SYSgetOsProc ( )

Find the name of the operating system that Houdini was compiled for.

SYS_API const char* SYSgetPlatformSpec ( )

Find the exact OS, 32-bit or 64-bit build, compiler version.

SYS_API void SYSgetProcessor ( int majortype,
int flags 
)

Get processor information about the CPU that Houdini is running on. Please see SYS_ProcessorDefines.h for CPU information

SYS_API int SYSgetProcessorCount ( )

Returns the number of processors available for the process, taking into account affinity masks.

SYS_API std::string SYSgetRuntimeOSLabel ( )

Return a "nice" name of the current operating system.

SYS_API bool SYSisLinux ( )
SYS_API bool SYSisMBSD ( )

Just a handy, quick, and fast function to test the platform for which the code is being compiled.

SYS_API bool SYSisWindows ( )