PlatformInfo Class Reference

#include <PlatformInfo.h>

List of all members.

Static Public Member Functions

static bool IsThreaded (void)
static bool IsLittleEndian (void)
static void SetThreaded (const bool allow)
static void SetProcessorReplicaNet (const int processor=kReplicaNetPreferredProcessorOSChoice)
static int GetProcessorReplicaNet (void)
static void SetProcessorXPSession (const int processor=kReplicaNetPreferredProcessorOSChoice)
static int GetProcessorXPSession (void)
static void SetProcessorXPURL (const int processor=kReplicaNetPreferredProcessorOSChoice)
static int GetProcessorXPURL (void)


Detailed Description

A class designed to read various platform specific attributes

Member Function Documentation

static bool IsThreaded ( void   )  [static]

Supplies information on if the library is compiled with threading on or off.

Returns:
returns true if threading is turned on

static bool IsLittleEndian ( void   )  [static]

Tests for endianness of the machine

Returns:
returns true for little endian machines

static void SetThreaded ( const bool  allow  )  [static]

Sets if threads are allowed on this system. Allowing threads with single threaded libraries may result in unexpected results.

Parameters:
allow true means allow threads, false does not allow threads

static void SetProcessorReplicaNet ( const int  processor = kReplicaNetPreferredProcessorOSChoice  )  [static]

Sets the preferred processor for the ReplicaNet thread. See Thread::SetPreferredProcessor() for more information. This must be called before any ReplicaNet class is allocated. This configuration information is remembered for the lifetime of the application.

static void SetProcessorXPSession ( const int  processor = kReplicaNetPreferredProcessorOSChoice  )  [static]

Sets the preferred processor for the XPSession thread. See Thread::SetPreferredProcessor() for more information. This must be called before any ReplicaNet class is allocated. This configuration information is remembered for the lifetime of the application.

static void SetProcessorXPURL ( const int  processor = kReplicaNetPreferredProcessorOSChoice  )  [static]

Sets the preferred processor for the XPURL thread. See Thread::SetPreferredProcessor() for more information. This must be called before any ReplicaNet class is allocated. This configuration information is remembered for the lifetime of the application.


Generated on Sat Jun 28 22:02:24 2008 for ReplicaNet and RNLobby by  doxygen 1.5.3