TC::System Namespace Reference
[Base Classes and Functions]

Namespace for getting operating system depending information. More...


Functions

std::string GetOSName ()
std::string GetOSVersion ()
std::string GetOSCompany ()
std::string GetHostName ()
std::string GetUserName ()
sint32 GetNumCPUs ()
std::string GetCpuModel ()
uint64 GetCpuTime (uint64 starttime=0)
void Sleep (uint64 milli_seconds)
 Suspends the process for specified time if supported by the system otherwise it just waits specified time by checking the wall time.
std::string GetDate ()
std::string GetEnvironment (const std::string &ename)
uint32 GetProcessID ()
uint32 GetCurrentThreadID ()
sint32 GetLastError ()
std::string GetLastErrorMessage ()


Detailed Description

Namespace for getting operating system depending information.


Function Documentation

std::string TC::System::GetOSName (  ) 

Returns:
The operating system name

std::string TC::System::GetOSVersion (  ) 

Returns:
The operating system version

std::string TC::System::GetOSCompany (  ) 

Returns:
The operating system company

std::string TC::System::GetHostName (  ) 

Returns:
The hostname

std::string TC::System::GetUserName (  ) 

Returns:
The Username

sint32 TC::System::GetNumCPUs (  ) 

Returns:
Number of CPU´s in the computer

std::string TC::System::GetCpuModel (  ) 

Returns:
The hostname

uint64 TC::System::GetCpuTime ( uint64  starttime = 0  ) 

Returns:
CPU time needed since starttime

void TC::System::Sleep ( uint64  milli_seconds  ) 

Suspends the process for specified time if supported by the system otherwise it just waits specified time by checking the wall time.

Parameters:
milli_seconds Number of milli seconds to wait

std::string TC::System::GetDate (  ) 

Returns:
The date information stored in a string

std::string TC::System::GetEnvironment ( const std::string &  ename  ) 

Returns:
The string defined for environment variable

uint32 TC::System::GetProcessID (  ) 

Returns:
The process id of the current running process

uint32 TC::System::GetCurrentThreadID (  ) 

Returns:
The current thread id of the current running process

sint32 TC::System::GetLastError (  ) 

Returns:
The last happend error code

std::string TC::System::GetLastErrorMessage (  ) 

Returns:
The string last happend error code


Copyright (c) Thomas Goessler 2003 - 2008