From: Loof, D. <dl...@us...> - 2005-01-19 18:49:48
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13284/include/pclasses Modified Files: Time.h Log Message: add operators +=, -=, +, - Index: Time.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Time.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Time.h 27 Dec 2004 05:33:16 -0000 1.2 +++ Time.h 19 Jan 2005 18:49:38 -0000 1.3 @@ -22,6 +22,7 @@ #define P_Time_h #include <pclasses/Exception.h> +#include <pclasses/TimeSpan.h> #include <iostream> namespace P { @@ -63,6 +64,12 @@ bool operator!=(const Time& t) const throw(); Time& operator=(const Time& t) throw(); + + Time& operator+=(const TimeSpan& sp) throw(); + Time& operator-=(const TimeSpan& sp) throw(); + + friend Time operator+(const Time& t, const TimeSpan& sp) throw(); + friend Time operator-(const Time& t, const TimeSpan& sp) throw(); friend std::ostream& operator << (std::ostream& os, const Time& t); |