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

glite::rgma::Units Class Reference

#include <Units.h>

List of all members.

Public Member Functions

bool equals (Units units)
int hashCode ()

Static Public Attributes

const Units SECONDS
const Units MINUTES
const Units HOURS
const Units DAYS

Protected Member Functions

 Units (int units)
long getNumSeconds ()
int getUnits ()

Friends

class TimeInterval


Detailed Description

Time units.


Constructor & Destructor Documentation

glite::rgma::Units::Units int  units  )  [protected]
 

Constructs a Units object.

Parameters:
units An int representing the units to use.


Member Function Documentation

bool glite::rgma::Units::equals Units  units  ) 
 

Compares this Units object with another.

Parameters:
units The other Units object.
Returns:
True if they represent the same units.

long glite::rgma::Units::getNumSeconds  )  [protected]
 

Gets the number of seconds in this unit.

Returns:
The number of seconds in one of this unit.

int glite::rgma::Units::getUnits  )  [protected]
 

Gets the units represented by this Units object.

Returns:
An int representing the units, one of S (second), M (minute), H (hour) or D (day).

int glite::rgma::Units::hashCode  ) 
 

Returns a hash code value for the object.

Returns:
a hash code value for this object.


Member Data Documentation

const Units glite::rgma::Units::DAYS [static]
 

Days.

const Units glite::rgma::Units::HOURS [static]
 

Hours.

const Units glite::rgma::Units::MINUTES [static]
 

Minutes.

const Units glite::rgma::Units::SECONDS [static]
 

Seconds.


The documentation for this class was generated from the following files:
Generated on Wed Apr 25 19:11:33 2007 for glite-rgma-api-cpp by doxygen 1.3.5