From: Christian P. <cp...@us...> - 2005-01-20 22:51:04
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24344/include/pclasses Modified Files: TimeSpan.h Log Message: Added export macros. Index: TimeSpan.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/TimeSpan.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TimeSpan.h 26 Dec 2004 16:45:49 -0000 1.1 +++ TimeSpan.h 20 Jan 2005 22:50:56 -0000 1.2 @@ -21,6 +21,7 @@ #ifndef P_TimeSpan_h #define P_TimeSpan_h +#include <pclasses/Export.h> #include <pclasses/Exception.h> namespace P { @@ -30,7 +31,7 @@ This class is used to add or subtract a timespan from a Date, Time or DateTime object. */ -class TimeSpan { +class PCORE_EXPORT TimeSpan { public: TimeSpan(unsigned int days = 0, unsigned int hours = 0, unsigned int minutes = 0, unsigned int seconds = 0, @@ -66,10 +67,10 @@ TimeSpan& operator+=(const TimeSpan& sp) throw(OverflowError); TimeSpan& operator-=(const TimeSpan& sp) throw(); - friend TimeSpan operator+(const TimeSpan& sp1, const TimeSpan& sp2) + friend PCORE_EXPORT TimeSpan operator+(const TimeSpan& sp1, const TimeSpan& sp2) throw(OverflowError); - friend TimeSpan operator-(const TimeSpan& sp1, const TimeSpan& sp2) + friend PCORE_EXPORT TimeSpan operator-(const TimeSpan& sp1, const TimeSpan& sp2) throw(); private: |