CommonTime Arithmetic Operations


Functions

double gpstk::CommonTime::operator- (const CommonTime &right) const throw ()
 Difference two Common Time objects.
CommonTime gpstk::CommonTime::operator+ (double seconds) const throw ( InvalidRequest )
 Add seconds to a copy of this CommonTime.
CommonTime gpstk::CommonTime::operator- (double seconds) const throw ( InvalidRequest )
 Subtract seconds from a copy of this CommonTime.
CommonTime & gpstk::CommonTime::operator+= (double seconds) throw ( InvalidRequest )
 Add seconds to this CommonTime.
CommonTime & gpstk::CommonTime::operator-= (double seconds) throw ( InvalidRequest )
 Subtract seconds from this CommonTime.
CommonTime & gpstk::CommonTime::addSeconds (double seconds) throw ( InvalidRequest )
 Add seconds to this CommonTime object.
CommonTime & gpstk::CommonTime::addDays (long days) throw ( InvalidRequest )
 Add integer days to this CommonTime object.
CommonTime & gpstk::CommonTime::addSeconds (long seconds) throw ( InvalidRequest )
 Add integer seconds to this CommonTime object.
CommonTime & gpstk::CommonTime::addMilliseconds (long ms) throw ( InvalidRequest )
 Add integer milliseconds to this CommonTime object.


Function Documentation

CommonTime & addDays long  days  )  throw ( InvalidRequest ) [inherited]
 

Add integer days to this CommonTime object.

param days the number of days to add to this CommonTime

Returns:
a reference to this CommonTime object
Exceptions:
InvalidRequest on over-/under-flow

Definition at line 274 of file CommonTime.cpp.

CommonTime & addMilliseconds long  ms  )  throw ( InvalidRequest ) [inherited]
 

Add integer milliseconds to this CommonTime object.

Parameters:
ms the number of milliseconds to add to this CommonTime
Returns:
a reference to this CommonTime object
Exceptions:
InvalidRequest on over-/under-flow

Definition at line 281 of file CommonTime.cpp.

Referenced by Epoch::addMicroSeconds(), and Epoch::addMilliSeconds().

CommonTime & addSeconds long  seconds  )  throw ( InvalidRequest ) [inherited]
 

Add integer seconds to this CommonTime object.

Parameters:
sec the number of seconds to add to this CommonTime
Returns:
a reference to this CommonTime object
Exceptions:
InvalidRequest on over-/under-flow

Definition at line 255 of file CommonTime.cpp.

References ABS, and gpstk::MS_PER_SEC.

CommonTime & addSeconds double  seconds  )  throw ( InvalidRequest ) [inherited]
 

Add seconds to this CommonTime object.

This is the workhorse for the addition/subtraction operators.

Parameters:
sec the number of seconds to add to this CommonTime
Returns:
a reference to this CommonTime object
Exceptions:
InvalidRequest on over-/under-flow

Definition at line 235 of file CommonTime.cpp.

References ABS.

Referenced by Epoch::addMicroSeconds(), Epoch::addSeconds(), Epoch::operator+(), and Epoch::operator-().

CommonTime operator+ double  seconds  )  const throw ( InvalidRequest ) [inherited]
 

Add seconds to a copy of this CommonTime.

Parameters:
sec the number of seconds to add to a copy of this CommonTime
Returns:
the new CommonTime object
Exceptions:
InvalidRequest on over-/under-flow

Definition at line 209 of file CommonTime.cpp.

References Epoch::addSeconds().

CommonTime & operator+= double  seconds  )  throw ( InvalidRequest ) [inherited]
 

Add seconds to this CommonTime.

Parameters:
sec the number of seconds to add to this CommonTime.
Returns:
a reference to this CommonTime
Exceptions:
InvalidRequest on over-/under-flow

Definition at line 221 of file CommonTime.cpp.

CommonTime operator- double  seconds  )  const throw ( InvalidRequest ) [inherited]
 

Subtract seconds from a copy of this CommonTime.

Parameters:
sec the number of seconds to subtract from a copy of this CommonTime
Returns:
the new CommonTime object
Exceptions:
InvalidRequest on over-/under-flow

Definition at line 215 of file CommonTime.cpp.

References Epoch::addSeconds().

double operator- const CommonTime right  )  const throw () [inherited]
 

Difference two Common Time objects.

Parameters:
right CommonTime to subtract from this one
reutrn difference in seconds

Definition at line 201 of file CommonTime.cpp.

References gpstk::SEC_PER_DAY, and gpstk::SEC_PER_MS.

CommonTime & operator-= double  seconds  )  throw ( InvalidRequest ) [inherited]
 

Subtract seconds from this CommonTime.

Parameters:
sec the number of seconds to subtract from this CommonTime
Returns:
a reference to this CommonTime object
Exceptions:
InvalidRequest on over-/under-flow

Definition at line 228 of file CommonTime.cpp.


Generated on Tue Feb 7 03:31:26 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1