Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

LocStaticInfo Class Reference

#include <LocStaticInfo.hpp>

List of all members.

Public Member Functions

 LocStaticInfo ()
const char * getHostName () const
const char * getOsName () const
const char * getOsVersion () const
const char * getProcessorName () const
int getProcessorMhz () const
long getTotalRAM () const
long getTotalSwap () const

Private Attributes

string hostName
string osName
string osVersion
string processorName
int processorMhz
long totalRAM
long totalSwap


Detailed Description

LocStaticInfo - Collects system's static information.

LocStaticInfo queries the underlying OS for static machine information, such as OS version, CPU class and so on. Currently, it only works in Linux, mainly due to the fact that there is no standardized way of getting this kind of information across different platforms.

Author:
Andrei Goldchleger


Constructor & Destructor Documentation

LocStaticInfo::LocStaticInfo  ) 
 

Creates a LocStaticInfo object, getting infprmation from the OS.


Member Function Documentation

const char* LocStaticInfo::getHostName  )  const [inline]
 

Returns the machine's host name

const char* LocStaticInfo::getOsName  )  const [inline]
 

Returns the machine's OS name(e.g. linux)

const char* LocStaticInfo::getOsVersion  )  const [inline]
 

Returns the machine's OS version

int LocStaticInfo::getProcessorMhz  )  const [inline]
 

Returns the CPU clock

const char* LocStaticInfo::getProcessorName  )  const [inline]
 

Returns the machine's CPU name

long LocStaticInfo::getTotalRAM  )  const [inline]
 

Returns the total amount of RAM, in bytes

long LocStaticInfo::getTotalSwap  )  const [inline]
 

Returns the total amount of swap memory, in bytes


Member Data Documentation

string LocStaticInfo::hostName [private]
 

string LocStaticInfo::osName [private]
 

string LocStaticInfo::osVersion [private]
 

int LocStaticInfo::processorMhz [private]
 

string LocStaticInfo::processorName [private]
 

long LocStaticInfo::totalRAM [private]
 

long LocStaticInfo::totalSwap [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 6 16:13:17 2004 by doxygen 1.3.3