CPUSpeed Class Reference

The CPUSpeed Class. More...

#include <OSResult.h>

Collaboration diagram for CPUSpeed:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CPUSpeed ()
 Default constructor.
 ~CPUSpeed ()
 Class destructor.
bool IsEqual (CPUSpeed *that)
 A function to check for the equality of two objects.

Public Attributes

std::string unit
 the unit in which CPU speed is measured
std::string description
 a descriptive string to further describe the CPU
double value
 the number of CPU speed units

Detailed Description

The CPUSpeed Class.

Author:
Robert Fourer, Horand Gassmann, Jun Ma, Kipp Martin
Version:
1.0, 10/09/2009
Since:
OS 1.0
Remarks:
A data structure class that corresponds to an xml element in the OSrL schema.

Definition at line 388 of file OSResult.h.


Constructor & Destructor Documentation

CPUSpeed::CPUSpeed (  ) 

Default constructor.

Definition at line 197 of file OSResult.cpp.

CPUSpeed::~CPUSpeed (  ) 

Class destructor.

Definition at line 207 of file OSResult.cpp.


Member Function Documentation

bool CPUSpeed::IsEqual ( CPUSpeed that  ) 

A function to check for the equality of two objects.

Definition at line 4960 of file OSResult.cpp.

References description, unit, and value.


Member Data Documentation

std::string CPUSpeed::unit

the unit in which CPU speed is measured

Definition at line 393 of file OSResult.h.

Referenced by OSResult::getAvailableCPUSpeedUnit(), OSResult::getUsedCPUSpeedUnit(), IsEqual(), OSResult::setAvailableCPUSpeedUnit(), OSResult::setUsedCPUSpeedUnit(), and OSrLWriter::writeOSrL().

std::string CPUSpeed::description

a descriptive string to further describe the CPU

Definition at line 396 of file OSResult.h.

Referenced by OSResult::getAvailableCPUSpeedDescription(), OSResult::getUsedCPUSpeedDescription(), IsEqual(), OSResult::setAvailableCPUSpeedDescription(), OSResult::setUsedCPUSpeedDescription(), and OSrLWriter::writeOSrL().

double CPUSpeed::value

the number of CPU speed units

Definition at line 399 of file OSResult.h.

Referenced by OSResult::getAvailableCPUSpeedValue(), OSResult::getUsedCPUSpeedValue(), IsEqual(), OSResult::setAvailableCPUSpeedValue(), OSResult::setUsedCPUSpeedValue(), and OSrLWriter::writeOSrL().


The documentation for this class was generated from the following files:
Generated on Fri Jan 7 03:26:21 2011 by  doxygen 1.4.7