xvr2::Platform::SystemInformation Struct Reference

#include <Platform.h>

Inheritance diagram for xvr2::Platform::SystemInformation:

Inheritance graph
[legend]

List of all members.


Detailed Description

Holds runtime information regarding the system we're running on.

Definition at line 49 of file Platform.h.


Public Member Functions

virtual const char * getClassName ()
 Returns the name of the current class.
virtual std::string toString ()

Static Public Member Functions

static UInt32 cpuCount ()
 Obtains how many CPUs the system has installed.
static const CPU & getCPU (UInt32 idx=0)
 Returns a list with the details of each CPU found.
static UInt64 memorySize ()
 Gives the total amount of memory the system has which is a sum of physical + swap.
static UInt64 physicalMemorySize ()
 Returns the mount of physical memory installed.
static UInt64 swapSize ()
 Returns the mount of swap memory installed.
static const String & OSDistribution ()
 Returns the distribution name for the OS and distribution specific version.
static const String & OSName ()
static const String & OSVersionString ()
static const std::vector< int > & OSVersion ()
static void debugmsg (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__)
 Will print a debug message to the screen.
static void debugmsgln (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__)

Protected Attributes

std::string __cls_name

Friends

std::ostream & operator<< (std::ostream &stream, const Object &s)

Member Function Documentation

static UInt32 xvr2::Platform::SystemInformation::cpuCount (  )  [static]

Obtains how many CPUs the system has installed.

static const CPU& xvr2::Platform::SystemInformation::getCPU ( UInt32  idx = 0  )  [static]

Returns a list with the details of each CPU found.

static UInt64 xvr2::Platform::SystemInformation::memorySize (  )  [static]

Gives the total amount of memory the system has which is a sum of physical + swap.

static UInt64 xvr2::Platform::SystemInformation::physicalMemorySize (  )  [static]

Returns the mount of physical memory installed.

static UInt64 xvr2::Platform::SystemInformation::swapSize (  )  [static]

Returns the mount of swap memory installed.

static const String& xvr2::Platform::SystemInformation::OSDistribution (  )  [static]

Returns the distribution name for the OS and distribution specific version.

static const String& xvr2::Platform::SystemInformation::OSName (  )  [static]

static const String& xvr2::Platform::SystemInformation::OSVersionString (  )  [static]

static const std::vector<int>& xvr2::Platform::SystemInformation::OSVersion (  )  [static]

virtual const char* xvr2::Object::getClassName (  )  [virtual, inherited]

Returns the name of the current class.

static void xvr2::Object::debugmsg ( Object *  obj,
const char *  msg,
int  linenumber = __LINE__,
const char *  srcfile = __FILE__ 
) [static, inherited]

Will print a debug message to the screen.

static void xvr2::Object::debugmsgln ( Object *  obj,
const char *  msg,
int  linenumber = __LINE__,
const char *  srcfile = __FILE__ 
) [static, inherited]

virtual std::string xvr2::Object::toString (  )  [virtual, inherited]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const Object &  s 
) [friend, inherited]


Member Data Documentation

std::string xvr2::Object::__cls_name [protected, inherited]

Definition at line 30 of file Object.h.


The documentation for this struct was generated from the following file:

Generated on Fri Jun 20 22:56:04 2008 for X-VR2 SDK by  doxygen 1.5.5