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

glite::rgma::TimeInterval Class Reference

#include <TimeInterval.h>

List of all members.

Public Member Functions

 TimeInterval (int value=0, Units units=Units::SECONDS) throw (RGMAException)
 TimeInterval (const TimeInterval &timeInterval)
TimeIntervaloperator= (const TimeInterval &timeInterval)
int getValueAs (Units units) throw (RGMAException)


Detailed Description

Encapsulates a time value and the units being used.


Constructor & Destructor Documentation

glite::rgma::TimeInterval::TimeInterval int  value = 0,
Units  units = Units::SECONDS
throw (RGMAException)
 

A class that can represent a time interval

Parameters:
value a long value
units The time units: SECONDS, MINUTES, HOURS, DAYS

glite::rgma::TimeInterval::TimeInterval const TimeInterval timeInterval  ) 
 

creates a new TimeInterval object from the given TimeInterval

Parameters:
timeInterval the timeInterval to be copied


Member Function Documentation

int glite::rgma::TimeInterval::getValueAs Units  units  )  throw (RGMAException)
 

Gets the length of the time interval in the specified units.

Parameters:
units The time units: SECONDS, MINUTES, HOURS, DAYS
Returns:
The time interval in the given units.


The documentation for this class was generated from the following files:
Generated on Fri Mar 16 14:00:16 2007 for glite-rgma-api-cpp by doxygen 1.3.5