torque Torque Game Engine Documentation
TGE Version 1.5.2

UnixUtils Class Reference

#include <x86UNIXUtils.h>


Public Member Functions

 UnixUtils ()
virtual ~UnixUtils ()
bool inBackground ()
 Returns true if we're running in the background, false otherwise.
const char * getOSName ()
 Returns the name of the OS, as reported by uname.

Private Attributes

utsname * mUnameInfo


Constructor & Destructor Documentation

UnixUtils::UnixUtils (  ) 

virtual UnixUtils::~UnixUtils (  )  [virtual]


Member Function Documentation

bool UnixUtils::inBackground (  ) 

Returns true if we're running in the background, false otherwise.

There's no "standard" way to determine this in unix, but modern job control unices should support the method described here:

http://www.faqs.org/faqs/unix-faq/faq/part3/

(question 3.7)

const char* UnixUtils::getOSName (  ) 

Returns the name of the OS, as reported by uname.


Field Documentation

struct utsname* UnixUtils::mUnameInfo [read, private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen